Merge "Fixing animation regression due to ag/957220." into nyc-dev
This commit is contained in:
@@ -416,7 +416,7 @@ public class TaskStackLayoutAlgorithm {
|
|||||||
int prevFocusState = mFocusState;
|
int prevFocusState = mFocusState;
|
||||||
mFocusState = focusState;
|
mFocusState = focusState;
|
||||||
updateFrontBackTransforms();
|
updateFrontBackTransforms();
|
||||||
if (mCb != null && (prevFocusState != focusState)) {
|
if (mCb != null) {
|
||||||
mCb.onFocusStateChanged(prevFocusState, focusState);
|
mCb.onFocusStateChanged(prevFocusState, focusState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1664,10 +1664,10 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
|
|||||||
|
|
||||||
public final void onBusEvent(DismissRecentsToHomeAnimationStarted event) {
|
public final void onBusEvent(DismissRecentsToHomeAnimationStarted event) {
|
||||||
// Stop any scrolling
|
// Stop any scrolling
|
||||||
cancelDeferredTaskViewLayoutAnimation();
|
mTouchHandler.finishAnimations();
|
||||||
mStackScroller.stopScroller();
|
mStackScroller.stopScroller();
|
||||||
mStackScroller.stopBoundScrollAnimation();
|
mStackScroller.stopBoundScrollAnimation();
|
||||||
mTouchHandler.finishAnimations();
|
cancelDeferredTaskViewLayoutAnimation();
|
||||||
|
|
||||||
// Start the task animations
|
// Start the task animations
|
||||||
mAnimationHelper.startExitToHomeAnimation(event.animated, event.getAnimationTrigger());
|
mAnimationHelper.startExitToHomeAnimation(event.animated, event.getAnimationTrigger());
|
||||||
|
|||||||
Reference in New Issue
Block a user