summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Monk <jmonk@google.com> 2014-09-10 15:00:53 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-09-10 15:01:00 +0000
commitbd2ffe8f770ca5a62847d609f7cf07f0faf5f2bc (patch)
tree399f93c438f415db096d1adb6f73ce49ebd6e80e
parent0875a782ad6688407050592dd32169d7a8f0716a (diff)
parent8a2d4fc5be174fb200c788659d0a422564ae6f97 (diff)
Merge "Fix blank QS Panel after double tap on profile icon" into lmp-dev
-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 6117b985285d..2fafb2c948bd 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);