summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-10-10 22:53:07 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-10 22:53:07 +0000
commitb7981719b0d49610002205e956688fd9de66318a (patch)
tree7becc31487d5448899f04e16b9fbf4090141286e /packages/SystemUI/src
parentf1178b23ac64b6c96320b64e17f67a95fc7b6dff (diff)
parent5c401a0e0bf3b5f647f7f1791e10195f748bfe96 (diff)
downloadframeworks_base-b7981719b0d49610002205e956688fd9de66318a.zip
frameworks_base-b7981719b0d49610002205e956688fd9de66318a.tar.gz
frameworks_base-b7981719b0d49610002205e956688fd9de66318a.tar.bz2
am 5c401a0e: am 3e683b6a: Merge "Fixed a bug where the panel got into a wrong state" into lmp-dev
* commit '5c401a0e0bf3b5f647f7f1791e10195f748bfe96': Fixed a bug where the panel got into a wrong state
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java8
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java2
2 files changed, 9 insertions, 1 deletions
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 c612e4c..d8c99f8 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
@@ -774,6 +774,14 @@ public abstract class PanelView extends FrameLayout {
requestLayout();
}
+ public void instantCollapse() {
+ abortAnimations();
+ setExpandedFraction(0f);
+ if (mExpanding) {
+ notifyExpandingFinished();
+ }
+ }
+
private void abortAnimations() {
cancelPeek();
if (mHeightAnimator != null) {
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 7936a4b..4980c1c 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -3754,7 +3754,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
private void instantCollapseNotificationPanel() {
- mNotificationPanel.setExpandedFraction(0);
+ mNotificationPanel.instantCollapse();
}
@Override