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)
try {
appWidgetManager.updateAppWidget(it.widgetId, views)
} catch (ignored: Exception) {
}
}
}
}