2
0
Fork 1
mirror of https://github.com/FossifyOrg/Gallery.git synced 2025-04-21 18:59:48 +02:00

catch exceptions thrown at updating widgets

This commit is contained in:
tibbi 2019-08-10 19:59:46 +02:00
parent b85814c7f8
commit 70ef61e0ac

View file

@ -74,7 +74,11 @@ class MyWidgetProvider : AppWidgetProvider() {
}
setupAppOpenIntent(context, views, R.id.widget_holder, it)
appWidgetManager.updateAppWidget(it.widgetId, views)
try {
appWidgetManager.updateAppWidget(it.widgetId, views)
} catch (ignored: Exception) {
}
}
}
}