OSDN Git Service

QuickSettings was inaccessible sometimes with empty shade.
authorSelim Cinek <cinek@google.com>
Mon, 7 Apr 2014 19:18:09 +0000 (21:18 +0200)
committerSelim Cinek <cinek@google.com>
Mon, 7 Apr 2014 19:18:09 +0000 (21:18 +0200)
Fixed access to QuickSettings, when the shade was not full.

Bug: 13879008
Change-Id: Ie8c88b91eb397dcb4d78834acfc2e2ab2a24bed9

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

index ec35d41..20fb225 100644 (file)
@@ -529,7 +529,6 @@ public class PanelView extends FrameLayout {
 
         switch (event.getActionMasked()) {
             case MotionEvent.ACTION_DOWN:
-                mTracking = true;
                 if (mHandleView != null) {
                     mHandleView.setPressed(true);
                     // catch the press state change
@@ -561,6 +560,7 @@ public class PanelView extends FrameLayout {
                     if (h < -mTouchSlop) {
                         mInitialOffsetOnTouch = mExpandedHeight;
                         mInitialTouchY = y;
+                        mTracking = true;
                         return true;
                     }
                 }