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:
Selim Cinek
2017-06-21 19:14:34 +00:00
committed by android-build-merger

View File

@@ -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();