mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-19 21:40:37 +01:00
catch exceptions thrown at updating widgets
This commit is contained in:
parent
b85814c7f8
commit
70ef61e0ac
@ -74,7 +74,11 @@ class MyWidgetProvider : AppWidgetProvider() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setupAppOpenIntent(context, views, R.id.widget_holder, it)
|
setupAppOpenIntent(context, views, R.id.widget_holder, it)
|
||||||
appWidgetManager.updateAppWidget(it.widgetId, views)
|
|
||||||
|
try {
|
||||||
|
appWidgetManager.updateAppWidget(it.widgetId, views)
|
||||||
|
} catch (ignored: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user