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

Commit 7a4c24ee authored by [D's avatar [D[1;5D
Browse files

Fix private displays UID tracking

Move updateUIDsPresentOnDisplay from Task to TaskFragment

Fix: 435170529
Test: presubmit and manual
Flag: EXEMPT bugfix
Change-Id: Icafc2afcb8c33b88e5efe5e9991a9ef032eed527
parent a9492910
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1548,10 +1548,6 @@ class Task extends TaskFragment {
            getDisplayArea().addRootTaskReferenceIfNeeded((Task) child);
        }

        // Make sure the list of display UID allowlists is updated
        // now that this record is in a new task.
        mRootWindowContainer.updateUIDsPresentOnDisplay();

        // Only pass minimum dimensions for pure TaskFragment. Task's minimum dimensions must be
        // passed from Task constructor.
        final TaskFragment childTaskFrag = child.asTaskFragment();
+4 −0
Original line number Diff line number Diff line
@@ -2236,6 +2236,10 @@ class TaskFragment extends WindowContainer<WindowContainer> {
        if (hostProcess != null) {
            hostProcess.addEmbeddedActivity(addingActivity);
        }

        // Make sure the list of display UID allowlists is updated
        // now that this record is in a new task fragment.
        mRootWindowContainer.updateUIDsPresentOnDisplay();
    }

    @Override