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
This commit is contained in:
Jerry Chang
2022-06-08 04:43:21 +00:00
parent 46c9c66048
commit c04af333f5
@@ -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() {