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

Commit dea5ef93 authored by Louis Chang's avatar Louis Chang
Browse files

Remove respect_leaf_task_bounds flag

Bug: 410745462
Bug: 426172366
Test: wm presubmit
Flag: EXEMPT remove flag
Change-Id: I1e287bf539d0976136c79bc9499d1f24b1d46523
parent 70d5e516
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -140,17 +140,6 @@ flag {
    }
}

flag {
    namespace: "windowing_sdk"
    name: "respect_leaf_task_bounds"
    description: "Respect the override bounds of the leaf tasks that are organized by root tasks"
    bug: "410745462"
    is_fixed_read_only: true
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    namespace: "windowing_sdk"
    name: "root_task_for_bubble"
+0 −5
Original line number Diff line number Diff line
@@ -64,11 +64,6 @@ public class BubbleAnythingFlagHelper {
            return false;
        }

        // This is needed to allow the leaf task can be started in expected bounds.
        if (!com.android.window.flags.Flags.respectLeafTaskBounds()) {
            return false;
        }

        return com.android.window.flags.Flags.rootTaskForBubble();
    }

+1 −4
Original line number Diff line number Diff line
@@ -2469,10 +2469,7 @@ class Task extends TaskFragment {
     * persist task bounds if needed.
     */
    void setInitialBoundsIfNeeded() {
        if (!com.android.window.flags.Flags.respectLeafTaskBounds()) {
            updateOverrideConfigurationFromLaunchBounds();
        } else if (persistTaskBounds(getWindowConfiguration())
                && getRequestedOverrideBounds().isEmpty()) {
        if (persistTaskBounds(getWindowConfiguration()) && getRequestedOverrideBounds().isEmpty()) {
            // Sets the Task bounds to the non-fullscreen bounds persisted last time if the Task
            // has no override bounds set.
            setBounds(mLastNonFullscreenBounds);