mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Initialize db earlier; fixes crash
This commit is contained in:
@@ -100,6 +100,8 @@ public class HabitsApplication extends Application
|
||||
if (db.exists()) db.delete();
|
||||
}
|
||||
|
||||
DatabaseUtils.initializeActiveAndroid();
|
||||
|
||||
widgetUpdater = component.getWidgetUpdater();
|
||||
widgetUpdater.startListening();
|
||||
|
||||
@@ -118,8 +120,6 @@ public class HabitsApplication extends Application
|
||||
reminderScheduler.scheduleAll();
|
||||
widgetUpdater.updateWidgets();
|
||||
});
|
||||
|
||||
DatabaseUtils.initializeActiveAndroid();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user