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

Commit 260418ce authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Fix PiP regression when the stack animation is canceled" into pi-dev

am: 19cfc1a7

Change-Id: I4a4a0edb7931770b1c36dff87397667592e4db19
parents dc47eecd 19cfc1a7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1682,6 +1682,10 @@ public class TaskStack extends WindowContainer<Task> implements

            if (finalStackSize != null) {
                setPinnedStackSize(finalStackSize, null);
            } else {
                // We have been canceled, so the final stack size is null, still run the
                // animation-end logic
                onPipAnimationEndResize();
            }

            try {
@@ -1693,6 +1697,9 @@ public class TaskStack extends WindowContainer<Task> implements
            } catch (RemoteException e) {
                // I don't believe you...
            }
        } else {
            // No PiP animation, just run the normal animation-end logic
            onPipAnimationEndResize();
        }
    }