Skip to content

Commit 50bc4f5

Browse files
committed
Fix empty notification panel.
If the panel closed before the flip animation completed, you would have had a bad time. Bug: 7391510 Change-Id: I45c29de45b718bc63e7be1a5544c1f73ac6f46e0
1 parent 7382a02 commit 50bc4f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,12 @@ void makeExpandedInvisible() {
15701570

15711571
if (mHasFlipSettings) {
15721572
// reset things to their proper state
1573+
if (mFlipSettingsViewAnim != null) mFlipSettingsViewAnim.cancel();
1574+
if (mScrollViewAnim != null) mScrollViewAnim.cancel();
1575+
if (mSettingsButtonAnim != null) mSettingsButtonAnim.cancel();
1576+
if (mNotificationButtonAnim != null) mNotificationButtonAnim.cancel();
1577+
if (mClearButtonAnim != null) mClearButtonAnim.cancel();
1578+
15731579
mScrollView.setScaleX(1f);
15741580
mScrollView.setVisibility(View.VISIBLE);
15751581
mSettingsButton.setAlpha(1f);

0 commit comments

Comments
 (0)