From 9e33ef419f7f6e433caa2eaeda29d158d481fbaf Mon Sep 17 00:00:00 2001 From: Dinolek <18579460+Dinolek@users.noreply.github.com> Date: Sat, 9 Nov 2019 13:59:33 +0100 Subject: [PATCH] Fix LuckyNumberWidget not showing ThemeDialog (#583) --- .../luckynumberwidget/LuckyNumberWidgetConfigurePresenter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/luckynumberwidget/LuckyNumberWidgetConfigurePresenter.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/luckynumberwidget/LuckyNumberWidgetConfigurePresenter.kt index 3c8f18a05..6e4716bfa 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/luckynumberwidget/LuckyNumberWidgetConfigurePresenter.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/luckynumberwidget/LuckyNumberWidgetConfigurePresenter.kt @@ -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) }))