summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2011-09-22 10:29:31 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-22 10:29:31 -0700
commitcc22b99249ac80891af99be941862edc9569fc4b (patch)
treef772229bea67c5bfbf04ac4aac89ad5a4de488c5 /core/java
parent624181af38f7f9e4fe4a18ca3e15204f30609312 (diff)
parent705240631beffaedc28bc0b950e8b7f09b6d3b5d (diff)
downloadframeworks_base-cc22b99249ac80891af99be941862edc9569fc4b.zip
frameworks_base-cc22b99249ac80891af99be941862edc9569fc4b.tar.gz
frameworks_base-cc22b99249ac80891af99be941862edc9569fc4b.tar.bz2
Merge "Revert "Allow views to setSystemUiVisibility() with the same value and have it work."" into ics-factoryrom
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/View.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index ca06b9c..f993160 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -12969,15 +12969,13 @@ 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) {
- mSystemUiVisibility = visibility;
- if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
- mParent.recomputeViewAttributes(this);
+ if (visibility != mSystemUiVisibility) {
+ mSystemUiVisibility = visibility;
+ if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
+ mParent.recomputeViewAttributes(this);
+ }
}
}