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

Commit f1e7136c authored by Perry Wu's avatar Perry Wu Committed by Android (Google) Code Review
Browse files

Merge "Fix launcher KCA updates when entering -1 screen" into main

parents b7b48bbb 603f408b
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -258,6 +258,8 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer


    private boolean mCanShowAllAppsEducationView;
    private boolean mCanShowAllAppsEducationView;


    private boolean mIsOverlayVisible;

    public static QuickstepLauncher getLauncher(Context context) {
    public static QuickstepLauncher getLauncher(Context context) {
        return fromContext(context);
        return fromContext(context);
    }
    }
@@ -495,7 +497,8 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer
                    (getActivityFlags() & ACTIVITY_STATE_USER_WILL_BE_ACTIVE) != 0;
                    (getActivityFlags() & ACTIVITY_STATE_USER_WILL_BE_ACTIVE) != 0;
            boolean visible = (state == NORMAL || state == OVERVIEW)
            boolean visible = (state == NORMAL || state == OVERVIEW)
                    && (willUserBeActive || isUserActive())
                    && (willUserBeActive || isUserActive())
                    && !profile.isVerticalBarLayout();
                    && !profile.isVerticalBarLayout()
                    && !mIsOverlayVisible;
            SystemUiProxy.INSTANCE.get(this)
            SystemUiProxy.INSTANCE.get(this)
                    .setLauncherKeepClearAreaHeight(visible, profile.hotseatBarSizePx);
                    .setLauncherKeepClearAreaHeight(visible, profile.hotseatBarSizePx);
        }
        }
@@ -504,6 +507,12 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer
        }
        }
    }
    }


    @Override
    public void onOverlayVisibilityChanged(boolean visible) {
        super.onOverlayVisibilityChanged(visible);
        mIsOverlayVisible = visible;
    }

    @Override
    @Override
    public void bindExtraContainerItems(FixedContainerItems item) {
    public void bindExtraContainerItems(FixedContainerItems item) {
        if (item.containerId == Favorites.CONTAINER_PREDICTION) {
        if (item.containerId == Favorites.CONTAINER_PREDICTION) {