am 3b866bee: Make sure endClosing doesn\'t get called too early

* commit '3b866bee86f742f51a0042985ec7666283dc4406':
  Make sure endClosing doesn't get called too early
This commit is contained in:
Jorim Jaggi
2015-06-30 22:38:07 +00:00
committed by Android Git Automerger

View File

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