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

Commit 884f3c38 authored by Winson Chung's avatar Winson Chung
Browse files

Fix NPE when checking pending transition type

- This is a regression from ag/25618079, that change only affects the
  hide transition for an existing taskview so adding this check does
  not affect that behavior.

Bug: 317330143
Test: atest WMShellUnitTests
Change-Id: If1146c6023329b40b22fe78e0f7521534f9f62f3
parent c4a0eca0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ public class TaskViewTransitions implements Transitions.TransitionHandler {
                    continue;
                }
                if (isHide) {
                    if (pending.mType == TRANSIT_TO_BACK) {
                    if (pending != null && pending.mType == TRANSIT_TO_BACK) {
                        // TO_BACK is only used when setting the task view visibility immediately,
                        // so in that case we can also hide the surface immediately
                        startTransaction.hide(chg.getLeash());