Skip to content

Commit

Permalink
Initialize db earlier; fixes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed Aug 5, 2016
1 parent fc2087f commit 9a470cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/isoron/uhabits/HabitsApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public void onCreate()
if (db.exists()) db.delete();
}

DatabaseUtils.initializeActiveAndroid();

widgetUpdater = component.getWidgetUpdater();
widgetUpdater.startListening();

Expand All @@ -118,8 +120,6 @@ public void onCreate()
reminderScheduler.scheduleAll();
widgetUpdater.updateWidgets();
});

DatabaseUtils.initializeActiveAndroid();
}

@Override
Expand Down

0 comments on commit 9a470cc

Please sign in to comment.