Make sure expandingFinished gets called when going into QS
Bug: 22351040 Bug: 22306637 Change-Id: I8d1f9fb400b328753bd8444bf3b4a744ad23a53a
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user