From 409d99a090dd3dc1525aa24ca405b0df44e2c818 Mon Sep 17 00:00:00 2001 From: Winson Date: Tue, 10 May 2016 15:03:46 -0700 Subject: [PATCH] Fixing flashing when animation the launch task. - When we are setting the tasks during the initialization of the tasks, only animate if we are not awaiting the first layout (since those should override the existing layout). Bug: 28701153 Change-Id: I4ccb38417df15f43408b2ae77708ba9de407e753 --- .../com/android/systemui/recents/views/TaskStackView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 3d0de1cab1e9c..1a197b69c1bb8 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java @@ -1391,8 +1391,9 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal updateLayoutAlgorithm(true /* boundScroll */); // Animate all the tasks into place - relayoutTaskViews(new AnimationProps(DEFAULT_SYNC_STACK_DURATION, - Interpolators.FAST_OUT_SLOW_IN)); + relayoutTaskViews(mAwaitingFirstLayout + ? AnimationProps.IMMEDIATE + : new AnimationProps(DEFAULT_SYNC_STACK_DURATION, Interpolators.FAST_OUT_SLOW_IN)); } /**