mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
catch exceptions thrown at updating widgets
This commit is contained in:
parent
b85814c7f8
commit
70ef61e0ac
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue