diff options
author | Selim Cinek <cinek@google.com> | 2014-10-10 22:53:07 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-10 22:53:07 +0000 |
commit | b7981719b0d49610002205e956688fd9de66318a (patch) | |
tree | 7becc31487d5448899f04e16b9fbf4090141286e /packages/SystemUI/src | |
parent | f1178b23ac64b6c96320b64e17f67a95fc7b6dff (diff) | |
parent | 5c401a0e0bf3b5f647f7f1791e10195f748bfe96 (diff) | |
download | frameworks_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.java | 8 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 2 |
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 |