2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/16353: Avoid strict mode death on reading onboarding preference.

This commit is contained in:
mcarare 2020-11-23 12:06:42 +02:00 committed by Mihai Adrian Carare
parent a1b3273427
commit e68c318f1f

View File

@ -223,8 +223,10 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler,
observeTabSelection(requireComponents.core.store)
if (!onboarding.userHasBeenOnboarded()) {
observeTabSource(requireComponents.core.store)
lifecycleScope.launch(IO) {
if (!onboarding.userHasBeenOnboarded()) {
observeTabSource(requireComponents.core.store)
}
}
requireContext().accessibilityManager.addAccessibilityStateChangeListener(this)