Make sure expandingFinished gets called when going into QS

Bug: 22351040
Bug: 22306637
Change-Id: I8d1f9fb400b328753bd8444bf3b4a744ad23a53a
This commit is contained in:
Jorim Jaggi
2015-07-22 14:05:06 -07:00
parent bf3a24d5ec
commit 1d071ce9b1
2 changed files with 3 additions and 2 deletions

View File

@@ -965,6 +965,7 @@ public class NotificationPanelView extends PanelView implements
private void onQsExpansionStarted(int overscrollAmount) {
cancelQsAnimation();
cancelHeightAnimator();
notifyExpandingFinished();
// Reset scroll position and apply that position to the expanded height.
float height = mQsExpansionHeight - mScrollView.getScrollY() - overscrollAmount;

View File

@@ -111,7 +111,7 @@ public abstract class PanelView extends FrameLayout {
*/
private float mNextCollapseSpeedUpFactor = 1.0f;
private boolean mExpanding;
protected boolean mExpanding;
private boolean mGestureWaitForTouchSlop;
private boolean mIgnoreXTouchSlop;
private Runnable mPeekRunnable = new Runnable() {
@@ -137,7 +137,7 @@ public abstract class PanelView extends FrameLayout {
}
}
private void notifyExpandingFinished() {
protected final void notifyExpandingFinished() {
if (mExpanding) {
mExpanding = false;
onExpandingFinished();