Always update widgets on launch

Helps mitigate situations where the widgets mysteriously fail to render.
The user can always force a refresh by opening the app.
feature/sync2^2
Alinson S. Xavier 3 years ago
parent bf504641c6
commit 73712e0d10
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -102,8 +102,9 @@ class ListHabitsActivity : AppCompatActivity(), Preferences.Listener {
taskRunner.run {
try {
AutoBackup(this@ListHabitsActivity).run()
appComponent.widgetUpdater.updateWidgets()
} catch (e: Exception) {
Log.e("ListHabitActivity", "AutoBackup task failed", e)
Log.e("ListHabitActivity", "TaskRunner failed", e)
}
}
if (prefs.theme == THEME_DARK && prefs.isPureBlackEnabled != pureBlack) {

Loading…
Cancel
Save