am cc22b992: Merge "Revert "Allow views to setSystemUiVisibility() with the same value and have it work."" into ics-factoryrom
* commit 'cc22b99249ac80891af99be941862edc9569fc4b': Revert "Allow views to setSystemUiVisibility() with the same value and have it work."
This commit is contained in:
@@ -12969,15 +12969,13 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
|||||||
* Request that the visibility of the status bar be changed.
|
* Request that the visibility of the status bar be changed.
|
||||||
* @param visibility Bitwise-or of flags {@link #SYSTEM_UI_FLAG_LOW_PROFILE} or
|
* @param visibility Bitwise-or of flags {@link #SYSTEM_UI_FLAG_LOW_PROFILE} or
|
||||||
* {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}.
|
* {@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) {
|
public void setSystemUiVisibility(int visibility) {
|
||||||
mSystemUiVisibility = visibility;
|
if (visibility != mSystemUiVisibility) {
|
||||||
if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
|
mSystemUiVisibility = visibility;
|
||||||
mParent.recomputeViewAttributes(this);
|
if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
|
||||||
|
mParent.recomputeViewAttributes(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user