mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
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.
This commit is contained in:
@@ -102,8 +102,9 @@ class ListHabitsActivity : AppCompatActivity(), Preferences.Listener {
|
|||||||
taskRunner.run {
|
taskRunner.run {
|
||||||
try {
|
try {
|
||||||
AutoBackup(this@ListHabitsActivity).run()
|
AutoBackup(this@ListHabitsActivity).run()
|
||||||
|
appComponent.widgetUpdater.updateWidgets()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e("ListHabitActivity", "AutoBackup task failed", e)
|
Log.e("ListHabitActivity", "TaskRunner failed", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (prefs.theme == THEME_DARK && prefs.isPureBlackEnabled != pureBlack) {
|
if (prefs.theme == THEME_DARK && prefs.isPureBlackEnabled != pureBlack) {
|
||||||
|
|||||||
Reference in New Issue
Block a user