summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yuichiro Hanada <yhanada@google.com> 2025-03-10 16:25:25 +0900
committer Yuichiro Hanada <yhanada@google.com> 2025-03-11 11:24:49 +0900
commit25416e43bb702c3e7772e0003d65e4f0e7b7798f (patch)
treee4e1338889c30391192729e53396f64ed0267ef8
parentb10a07bd4f646786615857daf16ebfc75dada4d8 (diff)
Do not check a transition type when setting launcher alpha to 0 during Desktop exit transition.
Desktop exit transition may have 'TRANSIT_MINIMIZE' custom transition type which is not caught by isClosingType. It already checks the necessary and sufficient condition (opening a laucher and closing a freeform task or a desktop wallpaper), so we don't need the check for the transition type. Bug: 401494583 Test: manual - checks there is no flicker showing a launcher at the beginning of the minimization animation Flag: com.android.window.flags.enable_desktop_windowing_exit_by_minimize_transition_bugfix Change-Id: Ie207a762732302292c87114ac349276985d4bb54
-rw-r--r--packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java b/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java
index 694fc8eb6ad7..ca94482b9c5a 100644
--- a/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java
+++ b/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java
@@ -22,6 +22,7 @@ import static android.view.WindowManager.TRANSIT_OLD_NONE;
import static android.view.WindowManager.TRANSIT_OPEN;
import static android.view.WindowManager.TRANSIT_TO_BACK;
import static android.view.WindowManager.TRANSIT_TO_FRONT;
+import static android.window.DesktopModeFlags.ENABLE_DESKTOP_WINDOWING_EXIT_BY_MINIMIZE_TRANSITION_BUGFIX;
import static android.window.DesktopModeFlags.ENABLE_DESKTOP_WINDOWING_EXIT_TRANSITIONS_BUGFIX;
import static android.window.TransitionInfo.FLAG_IS_WALLPAPER;
@@ -261,7 +262,8 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner
SurfaceControl.Transaction startTransaction
) {
checkArgument(isOpeningMode(launcherChange.getMode()));
- if (!isClosingType(info.getType())) {
+ if (!isClosingType(info.getType())
+ && !ENABLE_DESKTOP_WINDOWING_EXIT_BY_MINIMIZE_TRANSITION_BUGFIX.isTrue()) {
return;
}
for (int i = info.getChanges().size() - 1; i >= 0; --i) {