am 812eae18: am 3e02adb0: Fix closing state

* commit '812eae1851cc77528aa696714471722cc1f71c50':
  Fix closing state
This commit is contained in:
Jorim Jaggi
2015-05-14 22:46:37 +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);
}