From 98f1085121877d4208e909292188eae6f7cc7bc8 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 18 Feb 2022 11:51:02 +0000 Subject: [PATCH] making use of viewevent delegating action for the back handling --- .../onboarding/ftueauth/FtueAuthChooseDisplayNameFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthChooseDisplayNameFragment.kt b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthChooseDisplayNameFragment.kt index d126f0fb189..8032b77612b 100644 --- a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthChooseDisplayNameFragment.kt +++ b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthChooseDisplayNameFragment.kt @@ -25,6 +25,7 @@ import com.google.android.material.textfield.TextInputLayout import im.vector.app.core.platform.SimpleTextWatcher import im.vector.app.databinding.FragmentFtueDisplayNameBinding import im.vector.app.features.onboarding.OnboardingAction +import im.vector.app.features.onboarding.OnboardingViewEvents import javax.inject.Inject class FtueAuthChooseDisplayNameFragment @Inject constructor() : AbstractFtueAuthFragment() { @@ -60,7 +61,7 @@ class FtueAuthChooseDisplayNameFragment @Inject constructor() : AbstractFtueAuth } override fun onBackPressed(toolbarButton: Boolean): Boolean { - viewModel.handle(OnboardingAction.TakeMeHome) + viewModel.handle(OnboardingAction.PostViewEvent(OnboardingViewEvents.OnTakeMeHome)) return false } }