catch runtime exceptions thrown at monthly widget provider

This commit is contained in:
tibbi 2018-03-26 15:26:00 +02:00
parent 34c145d328
commit ceab435410
1 changed files with 4 additions and 1 deletions

View File

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