From 0b1528aac46007f94f0e073143708240b0c7c144 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Tue, 28 Oct 2014 22:47:46 +0100 Subject: Make status bar expanding more tightly coupled to finger Improves the "direct modification" feeling a bit. Bug: 17040206 Change-Id: Ide4bfb36aef584da36e0340bc2ed099e2e24c0ee --- .../SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index 0ddda8a..0cf2d05 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -284,7 +284,7 @@ public abstract class PanelView extends FrameLayout { || mInitialOffsetOnTouch == 0f)) { mTouchSlopExceeded = true; if (waitForTouchSlop && !mTracking) { - if (!mJustPeeked) { + if (!mJustPeeked && mInitialOffsetOnTouch != 0f) { mInitialOffsetOnTouch = mExpandedHeight; mInitialTouchX = x; mInitialTouchY = y; -- cgit v1.1