summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson <winsonc@google.com> 2016-04-23 16:06:50 -0700
committer Winson Chung <winsonc@google.com> 2016-04-25 16:01:03 +0000
commit60df24648e7ce6293124256ea565615f88df3c38 (patch)
treea7b91e3f008fa9cd4aaa9aa33c49ad2f1c1f32cb
parentb02d51b3d31b1a49ddc7c7e7db97b576d6e4f78f (diff)
Fixing animation regression due to ag/957220.
- Ensure we clear deferred relayouts after finishing all animations in case they trigger a deferred layout in the animation-end callback. Bug: 28287904 Change-Id: I6d71328fb3dc4595ea67ee18cfa57d85d741e6c6
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java2
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java
index fc7bba52907f..270d981734fb 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java
@@ -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);
}
}
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
index 6732b171d2e7..a1584829e0db 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
@@ -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());