Merge "Fix blank QS Panel after double tap on profile icon" into lmp-dev

This commit is contained in:
Jason Monk
2014-09-10 15:00:53 +00:00
committed by Android (Google) Code Review

View File

@@ -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);