diff options
author | Danny Baumann <dannybaumann@web.de> | 2013-06-08 20:21:11 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2013-06-08 20:21:11 +0200 |
commit | 686a4e8fb115ee090db5a36f3d3ff1a9767e9cc7 (patch) | |
tree | 560a0b9324c3d60ffffcc530ffa17a8ad2600fda /packages/SystemUI/src | |
parent | ecf9a9896e925e65565917e4639c508fc5303132 (diff) | |
download | frameworks_base-686a4e8fb115ee090db5a36f3d3ff1a9767e9cc7.zip frameworks_base-686a4e8fb115ee090db5a36f3d3ff1a9767e9cc7.tar.gz frameworks_base-686a4e8fb115ee090db5a36f3d3ff1a9767e9cc7.tar.bz2 |
Finally fix incorrect flipping to quick settings.
Commit f6685c5ca84a42f5a47bf40827d6229dd998dee4 fixed this for the
two-finger pulldown. It reverted commit
c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f in the process, which was
incorrect, but fixed another condition of this problem occuring
nevertheless. The actual problem the latter fix tried to fix was that
the flip decision was dependant on the timing of the view layout:
getMeasuredHeight() returned whatever was set in the last layout, which
might not have happened when hiding the view, so at the time of the next
ACTION_DOWN getMeasuredHeight() returned the height from the time the
panel was last visible.
Fix that problem by using the height scheduled for the next layout, so
we're always up-to-date.
Change-Id: Ib97f34f9aa0a6f28d48b4ec3e16c82a814cda0d0
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 2 |
1 files changed, 1 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 6e635c1..626dbf9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -178,7 +178,7 @@ public class NotificationPanelView extends PanelView { if (y > maxy) maxy = y; } if (maxy - miny < mHandleBarHeight) { - if (mJustPeeked || getMeasuredHeight() < mHandleBarHeight) { + if (mJustPeeked || getExpandedHeight() < mHandleBarHeight) { mStatusBar.switchToSettings(); } else { mStatusBar.flipToSettings(); |