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({ .subscribe({
when { when {
it.isEmpty() -> view?.openLoginView() it.isEmpty() -> view?.openLoginView()
it.size == 1 -> registerStudent(it.single().student) it.size == 1 -> {
selectedStudent = it.single().student
view?.showThemeDialog()
}
else -> view?.updateData(it) else -> view?.updateData(it)
} }
}, { errorHandler.dispatch(it) })) }, { errorHandler.dispatch(it) }))