am 3e02adb0: Fix closing state

* commit '3e02adb028741938dab9787fa1552f86b2558c9a':
  Fix closing state
This commit is contained in:
Jorim Jaggi
2015-05-14 22:34:59 +00:00
committed by Android Git Automerger

View File

@@ -616,6 +616,9 @@ public abstract class PanelView extends FrameLayout {
boolean expandBecauseOfFalsing) {
cancelPeek();
float target = expand ? getMaxPanelHeight() : 0.0f;
if (!expand) {
mClosing = true;
}
flingToHeight(vel, expand, target, collapseSpeedUpFactor, expandBecauseOfFalsing);
}