summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar
diff options
context:
space:
mode:
authorStevenHarperUK <stevenharperuk@gmail.com>2013-02-22 23:06:14 +0000
committerStevenHarperUK <stevenharperuk@gmail.com>2013-02-22 23:06:14 +0000
commitc5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f (patch)
treef4782174d97358fb79938a75670676bf2d32a9ea /packages/SystemUI/src/com/android/systemui/statusbar
parent0f616cf978e108a2b4d5557089bdfdb6bdb7ae15 (diff)
downloadframeworks_base-c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f.zip
frameworks_base-c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f.tar.gz
frameworks_base-c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f.tar.bz2
Bugfix : Quick pulldown sometimes flips when it should not
When your Quick Settings Panel is set to Quick pulldown : right Sometimes (very intermittently) the tray flips (to Quick Settings) as you pull it down from the right side. This is happening because the pull down happened so fast you can see the top 0-10 pixels of the tray, and because it was showing the notifications, not the Quick Settiings However the user expects the tray not to flip, but to just be on the Quck Settings. The new code simply checks to see that the Event was a pull down event and that the event started in the top status bar. If this is the case, then the quick panel is swapped to (without flip) Special Thanks to my daughter Jenny fo painstakingly reproducing this bug. Change-Id: I8fdbedb1aa6d4fd672bd4cb58b7c99557469ab62
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index b46aa3d..480dc99 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -181,7 +181,12 @@ public class NotificationPanelView extends PanelView {
if (getMeasuredHeight() < mHandleBarHeight) {
mStatusBar.switchToSettings();
} else {
- mStatusBar.flipToSettings();
+ // Do not flip if the drag event started within the top bar
+ if (MotionEvent.ACTION_DOWN == event.getActionMasked() && event.getY(0) < mHandleBarHeight ) {
+ mStatusBar.switchToSettings();
+ } else {
+ mStatusBar.flipToSettings();
+ }
}
mOkToFlip = false;
}