commit | ac47ff70c322614ff2ca9ad82fe41338daf55877 | [log] [tgz] |
---|---|---|
author | Daniel Sandler <dsandler@android.com> | Tue Oct 23 10:41:44 2012 -0400 |
committer | Daniel Sandler <dsandler@android.com> | Tue Oct 23 10:41:44 2012 -0400 |
tree | 7a9703459740cc84318d54e8f76f715d3bdf6950 | |
parent | 36425d19fc578c2042098d2045092990a811d0e6 [diff] [blame] |
Reset ExpandHelper when the panel is collapsed. Fixes a rather unpleasant bug in which the ExpandHelper could get locked in "expanding" mode if the panel was closed (for example, with the back button) while you were in the middle of an expand gesture. In this situation ExpandHelper would hungrily eat all future touch events destined for the notification panel, making it impossible to click or even clear any notifications. Bug: 7330828 Change-Id: I9c493db5e8fd8ef1aca53f77820780d60fa4e5a7
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java index 89c70e8..9bdcf5e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
@@ -119,5 +119,9 @@ canvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), pt); } } + + public void cancelExpandHelper() { + mExpandHelper.cancel(); + } }