summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2011-09-22 10:31:47 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-09-22 10:31:47 -0700
commit7933b7056f9886789e46e4151ed6c03f9f3d9398 (patch)
tree6173698499be35d954a48efcd81e1e75719ceaa6 /core/java/android
parentbedc1eb19d6c12facf65249ceb46cbabb6e0b05b (diff)
parentcc22b99249ac80891af99be941862edc9569fc4b (diff)
downloadframeworks_base-7933b7056f9886789e46e4151ed6c03f9f3d9398.zip
frameworks_base-7933b7056f9886789e46e4151ed6c03f9f3d9398.tar.gz
frameworks_base-7933b7056f9886789e46e4151ed6c03f9f3d9398.tar.bz2
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."
Diffstat (limited to 'core/java/android')
-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);
+ }
}
}