From d49503e58e7cb3dba671eaf920ea107281df5589 Mon Sep 17 00:00:00 2001 From: mcarare Date: Mon, 9 Dec 2019 13:54:15 +0200 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/7026 Dispatch ModeChange on hideOnboarding --- app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt index d4cb78000a..77fed6fe30 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt @@ -483,7 +483,8 @@ class HomeFragment : Fragment() { private fun hideOnboarding() { onboarding.finish() - currentMode.emitModeChanges() + homeFragmentStore.dispatch( + HomeFragmentAction.ModeChange(currentMode.getCurrentMode())) } private fun setupHomeMenu() {