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

Commit 06107a36 authored by Louis Chang's avatar Louis Chang
Browse files

Fix tasks not resized in split-screen

With 465b1e18, only root tasks are allowed to be organized. Therefore,
the direct children of organized tasks are no longer evaluated as
organized.

Do not set bounds to the children of organized tasks, and just follow
organized tasks to resize accordingly.

Bug: 152619437
Test: drag divider in split-screen
Change-Id: Icf84d3817b8cd506af49e54475f78eb001319d78
parent f6edbe55
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2448,7 +2448,8 @@ class Task extends WindowContainer<WindowContainer> {
    Rect updateOverrideConfigurationFromLaunchBounds() {
        // If the task is controlled by another organized task, do not set override
        // configurations and let its parent (organized task) to control it;
        final Rect bounds = isOrganized() && !isRootTask() ? null : getLaunchBounds();
        final Task rootTask = getRootTask();
        final Rect bounds = rootTask != this && rootTask.isOrganized() ? null : getLaunchBounds();
        setBounds(bounds);
        if (bounds != null && !bounds.isEmpty()) {
            // TODO: Review if we actually want to do this - we are setting the launch bounds