diff --git a/app/src/main/java/org/isoron/uhabits/HabitsApplication.java b/app/src/main/java/org/isoron/uhabits/HabitsApplication.java index fca416df1..692cd0402 100644 --- a/app/src/main/java/org/isoron/uhabits/HabitsApplication.java +++ b/app/src/main/java/org/isoron/uhabits/HabitsApplication.java @@ -100,6 +100,8 @@ public void onCreate() if (db.exists()) db.delete(); } + DatabaseUtils.initializeActiveAndroid(); + widgetUpdater = component.getWidgetUpdater(); widgetUpdater.startListening(); @@ -118,8 +120,6 @@ public void onCreate() reminderScheduler.scheduleAll(); widgetUpdater.updateWidgets(); }); - - DatabaseUtils.initializeActiveAndroid(); } @Override