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

Commit d5d86912 authored by Tiger Huang's avatar Tiger Huang Committed by Android (Google) Code Review
Browse files

Merge "Check mAttachInfo.mSystemUiVisibility to see if a SysUI flag exists" into tm-dev

parents 54c3d1b8 491c07a9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2338,10 +2338,9 @@ public final class ViewRootImpl implements ViewParent,
        final int systemUiFlag = publicType == Type.statusBars()
                ? View.SYSTEM_UI_FLAG_FULLSCREEN
                : View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
        final boolean wasVisible = (info.globalVisibility & systemUiFlag) == 0;
        if (visible) {
            info.globalVisibility &= ~systemUiFlag;
            if (!wasVisible && hasControl) {
            if (hasControl && (mAttachInfo.mSystemUiVisibility & systemUiFlag) != 0) {
                // The local system UI visibility can only be cleared while we have the control.
                info.localChanges |= systemUiFlag;
            }