From c04af333f52aa50be3920f8a8bc3df2709341b45 Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Wed, 8 Jun 2022 04:43:21 +0000 Subject: [PATCH] Prevent wallpaper flicker while entering split screen from overview When launching a pair of apps from overview panel, it will perform cross-fade animations to transit from overview to the split pair. But wallpaper might be visible for a while when both overveiw and split pair is transparent during the transition. This updates to not fade-out overview until the split pair is finishing showing in foregorund to prevent the flicker of wallpaper. Bug: 235137249 Test: swipe to home and enter overview panel, select and swipe down to enter a split pair, verified there's no flicker. Change-Id: Iec1dc49e260f6e46640d47295d7f65dad5c24ab5 --- quickstep/src/com/android/quickstep/TaskViewUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TaskViewUtils.java b/quickstep/src/com/android/quickstep/TaskViewUtils.java index 6179b81b7c..db402aff85 100644 --- a/quickstep/src/com/android/quickstep/TaskViewUtils.java +++ b/quickstep/src/com/android/quickstep/TaskViewUtils.java @@ -514,9 +514,6 @@ public final class TaskViewUtils { for (SurfaceControl leash: openingTargets) { t.setAlpha(leash, progress); } - for (SurfaceControl leash: closingTargets) { - t.setAlpha(leash, 1 - progress); - } t.apply(); }); animator.addListener(new AnimatorListenerAdapter() {