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

Commit 86b57551 authored by Brian Isganitis's avatar Brian Isganitis
Browse files

Reset allAppsVisible if folding to phone upon recreateTaskbar.

For taskbar unification, we should reset this bit to false when folding
into phone orientation. Otherwise, we will reinit Taskbar AllApps over
the phone UI which is unexpected behavior.

Test: Manual
Flag: N/A
Fix: 293379641
Change-Id: I53c38c8b4df477191be3c21b7750c55a71c7336f
(cherry picked from commit 6d63e779)
Merged-In: I53c38c8b4df477191be3c21b7750c55a71c7336f
parent c3832043
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -473,8 +473,8 @@ public class TaskbarManager {
                LauncherAppState.getIDP(mContext).getDeviceProfile(mContext) : null;

            // All Apps action is unrelated to navbar unification, so we only need to check DP.
            mAllAppsActionManager.setTaskbarPresent(dp != null && dp.isTaskbarPresent);

            final boolean isLargeScreenTaskbar = dp != null && dp.isTaskbarPresent;
            mAllAppsActionManager.setTaskbarPresent(isLargeScreenTaskbar);
            destroyExistingTaskbar();

            boolean isTaskbarEnabled = dp != null && isTaskbarEnabled(dp);
@@ -497,6 +497,7 @@ public class TaskbarManager {
            }
            mSharedState.startTaskbarVariantIsTransient =
                    DisplayController.isTransientTaskbar(mTaskbarActivityContext);
            mSharedState.allAppsVisible = mSharedState.allAppsVisible && isLargeScreenTaskbar;
            mTaskbarActivityContext.init(mSharedState);

            if (mActivity != null) {