catch exceptions thrown at updating monthly calendar

This commit is contained in:
tibbi 2017-07-06 22:34:39 +02:00
parent c9a342f516
commit 2199c4eb37
1 changed files with 6 additions and 3 deletions

View File

@ -216,9 +216,12 @@ class MyWidgetMonthlyProvider : AppWidgetProvider(), MonthlyCalendar {
} }
override fun updateMonthlyCalendar(month: String, days: List<Day>) { override fun updateMonthlyCalendar(month: String, days: List<Day>) {
try {
updateMonth(month) updateMonth(month)
updateDays(days) updateDays(days)
updateWidget() updateWidget()
} catch (ignored: Exception) {
}
} }
private fun updateLabelColor() { private fun updateLabelColor() {