summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2014-09-10 15:00:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-10 15:01:00 +0000
commitbd2ffe8f770ca5a62847d609f7cf07f0faf5f2bc (patch)
tree399f93c438f415db096d1adb6f73ce49ebd6e80e /packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
parent0875a782ad6688407050592dd32169d7a8f0716a (diff)
parent8a2d4fc5be174fb200c788659d0a422564ae6f97 (diff)
downloadframeworks_base-bd2ffe8f770ca5a62847d609f7cf07f0faf5f2bc.zip
frameworks_base-bd2ffe8f770ca5a62847d609f7cf07f0faf5f2bc.tar.gz
frameworks_base-bd2ffe8f770ca5a62847d609f7cf07f0faf5f2bc.tar.bz2
Merge "Fix blank QS Panel after double tap on profile icon" into lmp-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSPanel.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSPanel.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
index 6117b98..2fafb2c 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
@@ -532,6 +532,12 @@ public class QSPanel extends ViewGroup {
};
private final AnimatorListenerAdapter mHideGridContentWhenDone = new AnimatorListenerAdapter() {
+ public void onAnimationCancel(Animator animation) {
+ // If we have been cancelled, remove the listener so that onAnimationEnd doesn't get
+ // called, this will avoid accidentally turning off the grid when we don't want to.
+ animation.removeListener(this);
+ };
+
@Override
public void onAnimationEnd(Animator animation) {
setGridContentVisibility(false);