Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8badf561 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Fix Desktop exit-transition code NPE

Test: NA
Bug: 377665790
Flag: com.android.window.flags.enable_desktop_windowing_exit_transitions
Change-Id: Ia54fa1d85bafefda9130725b91710b5363c0db2f
parent b00c0520
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -268,7 +268,8 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner
            // skip changes that we didn't wrap
            if (!leashMap.containsKey(change.getLeash())) continue;
            // Only make the update if we are closing Desktop tasks.
            if (change.getTaskInfo().isFreeform() && isClosingMode(change.getMode())) {
            if (change.getTaskInfo() != null && change.getTaskInfo().isFreeform()
                    && isClosingMode(change.getMode())) {
                startTransaction.setAlpha(leashMap.get(launcherChange.getLeash()), 0f);
                return;
            }