catch runtime exceptions thrown at monthly widget provider
This commit is contained in:
parent
34c145d328
commit
ceab435410
|
@ -182,7 +182,10 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() {
|
|||
val monthCode = days.firstOrNull { it.code.substring(6) == "01" }?.code ?: Formatter.getTodayCode(context)
|
||||
setupAppOpenIntent(context, views, R.id.top_value, monthCode)
|
||||
|
||||
appWidgetManager.updateAppWidget(it, views)
|
||||
try {
|
||||
appWidgetManager.updateAppWidget(it, views)
|
||||
} catch (ignored: RuntimeException) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue