Fix a crash

This commit is contained in:
MM20 2021-11-02 17:48:33 +01:00
parent df492c92f2
commit 7548c11684
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -52,7 +52,7 @@ class CalendarWidget : LauncherWidget {
updateEventList()
}
private var availableDays: List<Long> = emptyList()
private var availableDays: List<Long> = listOf(0L)
set(value) {
if (value.indexOf(selectedDay) == -1) selectedDay = 0L
field = value