1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-11-23 22:46:31 -06:00

Fix LuckyNumberWidget not showing ThemeDialog (#583)

This commit is contained in:
Dinolek 2019-11-09 13:59:33 +01:00 committed by Rafał Borcz
parent 40e95eac1e
commit 9e33ef419f

View File

@ -58,7 +58,10 @@ class LuckyNumberWidgetConfigurePresenter @Inject constructor(
.subscribe({
when {
it.isEmpty() -> view?.openLoginView()
it.size == 1 -> registerStudent(it.single().student)
it.size == 1 -> {
selectedStudent = it.single().student
view?.showThemeDialog()
}
else -> view?.updateData(it)
}
}, { errorHandler.dispatch(it) }))