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

Commit 351eb33d authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Allow views to setSystemUiVisibility() with the same value and have it work."

parents 3e236950 fad95552
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -12663,15 +12663,17 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
     * Request that the visibility of the status bar be changed.
     * @param visibility  Bitwise-or of flags {@link #SYSTEM_UI_FLAG_LOW_PROFILE} or
     * {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}.
     *
     * This value will be re-applied immediately, even if the flags have not changed, so a view may
     * easily reassert a particular SystemUiVisibility condition even if the system UI itself has
     * since countermanded the original request.
     */
    public void setSystemUiVisibility(int visibility) {
        if (visibility != mSystemUiVisibility) {
        mSystemUiVisibility = visibility;
        if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
            mParent.recomputeViewAttributes(this);
        }
    }
    }
    /**
     * Returns the status bar visibility that this view has requested.