OSDN Git Service

Show clear all when returning from flip quick settings.
authorDaniel Sandler <dsandler@android.com>
Wed, 17 Oct 2012 20:42:36 +0000 (16:42 -0400)
committerDaniel Sandler <dsandler@android.com>
Wed, 17 Oct 2012 20:42:36 +0000 (16:42 -0400)
Bug: 7367906
Change-Id: I3c6d227d223f11c60a44ceee4cdf698aa2a0acc9

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

index 991ef8d..27a4db5 100644 (file)
@@ -1084,8 +1084,9 @@ public class PhoneStatusBar extends BaseStatusBar {
 
         if (mHasFlipSettings 
                 && mFlipSettingsView != null 
-                && mFlipSettingsView.getVisibility() == View.VISIBLE) {
-            // the flip settings panel is showing; we should not be shown
+                && mFlipSettingsView.getVisibility() == View.VISIBLE
+                && mScrollView.getVisibility() != View.VISIBLE) {
+            // the flip settings panel is unequivocally showing; we should not be shown
             mClearButton.setVisibility(View.INVISIBLE);
         } else if (mClearButton.isShown()) {
             if (clearable != (mClearButton.getAlpha() == 1.0f)) {