diff options
| author | 2015-06-30 11:31:10 -0700 | |
|---|---|---|
| committer | 2015-06-30 22:30:08 +0000 | |
| commit | 3b866bee86f742f51a0042985ec7666283dc4406 (patch) | |
| tree | 2a89efc9b8a6dedf9382b131bd4e4558ef7b5462 | |
| parent | 1aaad610dfc7445ec29fd906974677515c3a9f87 (diff) | |
Make sure endClosing doesn't get called too early
Bug: 22196478
Bug: 22184101
Change-Id: I3488c40b74a080efbba9b1544f9709f7e509988b
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 4 |
1 files changed, 3 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 39a06aa77756..93431722b2e3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -834,8 +834,10 @@ public abstract class PanelView extends FrameLayout { } } else if (!isFullyCollapsed() && !mTracking && !mClosing) { cancelHeightAnimator(); - mClosing = true; notifyExpandingStarted(); + + // Set after notifyExpandingStarted, as notifyExpandingStarted resets the closing state. + mClosing = true; if (delayed) { mNextCollapseSpeedUpFactor = speedUpFactor; postDelayed(mFlingCollapseRunnable, 120); |