Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61d19382 authored by Alex Chau's avatar Alex Chau
Browse files

In bindAllApplications, only switch to NORMAL while in ALL_APPS

- Otherwise, it can unexpectedly switch to NORMAL during a swipe up to Overview, causing issues with live tiles

Fix: 288557298
Test: Go to settings, change display size, immediately swipe up to Overview
Flag: None
Change-Id: I1eaf988d488c6662fd291f46a7cc0861664d8d38
parent c2f73d90
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -178,7 +178,10 @@ class ModelCallbacks(private var launcher: Launcher) : BgDataModel.Callbacks {
        val hadWorkApps = launcher.appsView.shouldShowTabs()
        launcher.appsView.appsStore.setApps(apps, flags, packageUserKeytoUidMap)
        PopupContainerWithArrow.dismissInvalidPopup(launcher)
        if (hadWorkApps != launcher.appsView.shouldShowTabs()) {
        if (
            hadWorkApps != launcher.appsView.shouldShowTabs() &&
                launcher.stateManager.state == LauncherState.ALL_APPS
        ) {
            launcher.stateManager.goToState(LauncherState.NORMAL)
        }
    }