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

Commit fba34d89 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "In bindAllApplications, only switch to NORMAL while in ALL_APPS" into main

parents 8ca83687 61d19382
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)
        }
    }