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

Commit f8b8c20c authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Clear VISIBLE_FOR_USER flag when isHiddenFromUser is true" into qt-dev

parents b13d88af bb6bd8ac
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1447,10 +1447,12 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP

    void clearPolicyVisibilityFlag(int policyVisibilityFlag) {
        mPolicyVisibility &= ~policyVisibilityFlag;
        mWmService.scheduleAnimationLocked();
    }

    void setPolicyVisibilityFlag(int policyVisibilityFlag) {
        mPolicyVisibility |= policyVisibilityFlag;
        mWmService.scheduleAnimationLocked();
    }

    private boolean isLegacyPolicyVisibility() {
@@ -3889,7 +3891,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
    boolean performShowLocked() {
        if (isHiddenFromUserLocked()) {
            if (DEBUG_VISIBILITY) Slog.w(TAG, "hiding " + this + ", belonging to " + mOwnerUid);
            hideLw(false);
            clearPolicyVisibilityFlag(VISIBLE_FOR_USER);
            return false;
        }