Merge "Fixing animation regression due to ag/957220." into nyc-dev

am: de91709

* commit 'de91709935b687cf747b25a48d22e9aa396bf462':
  Fixing animation regression due to ag/957220.

Change-Id: Ib0bc962b9e789227fed652517dff63ca00e0acc6
This commit is contained in:
Winson
2016-04-25 17:16:41 +00:00
committed by android-build-merger
2 changed files with 3 additions and 3 deletions

View File

@@ -416,7 +416,7 @@ public class TaskStackLayoutAlgorithm {
int prevFocusState = mFocusState;
mFocusState = focusState;
updateFrontBackTransforms();
if (mCb != null && (prevFocusState != focusState)) {
if (mCb != null) {
mCb.onFocusStateChanged(prevFocusState, focusState);
}
}

View File

@@ -1664,10 +1664,10 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
public final void onBusEvent(DismissRecentsToHomeAnimationStarted event) {
// Stop any scrolling
cancelDeferredTaskViewLayoutAnimation();
mTouchHandler.finishAnimations();
mStackScroller.stopScroller();
mStackScroller.stopBoundScrollAnimation();
mTouchHandler.finishAnimations();
cancelDeferredTaskViewLayoutAnimation();
// Start the task animations
mAnimationHelper.startExitToHomeAnimation(event.animated, event.getAnimationTrigger());