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

Commit ab75c01b authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Explicitly reset the task bounds when removing PIP" into rvc-dev am:...

Merge "Explicitly reset the task bounds when removing PIP" into rvc-dev am: 6e91a88b am: 8c22920c am: 58497ae1

Change-Id: Ib3874047744bc3c25fd4d91dbd534f21c962990b
parents f1157139 58497ae1
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -313,6 +313,11 @@ public class PipTaskOrganizer extends TaskOrganizer implements
        }
        }
        getUpdateHandler().post(() -> {
        getUpdateHandler().post(() -> {
            try {
            try {
                // Reset the task bounds first to ensure the activity configuration is reset as well
                final WindowContainerTransaction wct = new WindowContainerTransaction();
                wct.setBounds(mToken, null);
                WindowOrganizer.applyTransaction(wct);

                ActivityTaskManager.getService().removeStacksInWindowingModes(
                ActivityTaskManager.getService().removeStacksInWindowingModes(
                        new int[]{ WINDOWING_MODE_PINNED });
                        new int[]{ WINDOWING_MODE_PINNED });
            } catch (RemoteException e) {
            } catch (RemoteException e) {