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

Commit 0557739e authored by Evan Rosky's avatar Evan Rosky
Browse files

Apply split-screen resize on sync queue

This keeps it synchronized with dismissal and thus avoids
a race between pending and sync transaction application

Bug: 170801863
Test: launch a forced-multiwindow sizecompat app in split and
      then dismiss split to that app. App should not be cropped.
Change-Id: I4d89be443af5616174ea44e62774133e3b99597c
parent 084f3be4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ import android.view.WindowManagerGlobal;
import android.window.TaskOrganizer;
import android.window.WindowContainerToken;
import android.window.WindowContainerTransaction;
import android.window.WindowOrganizer;

import com.android.internal.annotations.GuardedBy;
import com.android.wm.shell.common.SyncTransactionQueue;
@@ -116,7 +115,7 @@ class WindowManagerProxy {
    void applyResizeSplits(int position, LegacySplitDisplayLayout splitLayout) {
        WindowContainerTransaction t = new WindowContainerTransaction();
        splitLayout.resizeSplits(position, t);
        new WindowOrganizer().applyTransaction(t);
        applySyncTransaction(t);
    }

    boolean getHomeAndRecentsTasks(List<ActivityManager.RunningTaskInfo> out,