Fix closing state

Bug: 20940663
Change-Id: I34e2bf4fb3ba9f9ad15e634c4a09883f57b446b2
This commit is contained in:
Jorim Jaggi
2015-05-13 17:50:26 -07:00
parent a8545890ac
commit 3e02adb028

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