Merge "Fixed a bug where the panel could be stuck" into oc-dev am: e8dceabd98
am: 9dfc970b63
Change-Id: I00ea048b80625dfeda1ca532d4b7c90f3e57b96f
This commit is contained in:
@@ -304,10 +304,10 @@ public abstract class PanelView extends FrameLayout {
|
||||
trackMovement(event);
|
||||
if (!mGestureWaitForTouchSlop || (mHeightAnimator != null && !mHintAnimationRunning)
|
||||
|| mPeekAnimator != null) {
|
||||
cancelHeightAnimator();
|
||||
cancelPeek();
|
||||
mTouchSlopExceeded = (mHeightAnimator != null && !mHintAnimationRunning)
|
||||
|| mPeekAnimator != null;
|
||||
cancelHeightAnimator();
|
||||
cancelPeek();
|
||||
onTrackingStarted();
|
||||
}
|
||||
if (isFullyCollapsed() && !mHeadsUpManager.hasPinnedHeadsUp()) {
|
||||
@@ -612,6 +612,9 @@ public abstract class PanelView extends FrameLayout {
|
||||
|
||||
protected void cancelHeightAnimator() {
|
||||
if (mHeightAnimator != null) {
|
||||
if (mHeightAnimator.isRunning()) {
|
||||
mPanelUpdateWhenAnimatorEnds = false;
|
||||
}
|
||||
mHeightAnimator.cancel();
|
||||
}
|
||||
endClosing();
|
||||
|
||||
Reference in New Issue
Block a user