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

Commit 7933b705 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am cc22b992: Merge "Revert "Allow views to setSystemUiVisibility() with the...

am cc22b992: Merge "Revert "Allow views to setSystemUiVisibility() with the same value and have it work."" into ics-factoryrom

* commit 'cc22b992':
  Revert "Allow views to setSystemUiVisibility() with the same value and have it work."
parents bedc1eb1 cc22b992
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -12969,17 +12969,15 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
     * 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.