1
0

Fix null returns in widgets (#340)

This commit is contained in:
Rafał Borcz
2019-05-18 00:22:07 +02:00
committed by Mikołaj Pich
parent 80cb94c434
commit bf6b857a3e
3 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ class LuckyNumberWidgetProvider : BroadcastReceiver() {
.toMaybe()
.doOnSuccess { sharedPref.putLong(getStudentWidgetKey(appWidgetId), it.id) }
}
else -> null
else -> Maybe.empty()
}
}
}

View File

@ -165,7 +165,7 @@ class TimetableWidgetProvider : BroadcastReceiver() {
.toMaybe()
.doOnSuccess { sharedPref.putLong(getStudentWidgetKey(appWidgetId), it.id) }
}
else -> null
else -> Maybe.empty()
}
}
}