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

Commit 0fae73cf authored by Eric Lin's avatar Eric Lin
Browse files

Add helper for bubble anything with recents exclusion check.

Introduces `enableBubbleAnythingWithForceExcludedFromRecents()`, a
helper method that consolidates the logic for determining whether both
the bubble anything feature and the force task excluded from recents
feature are enabled. This helper should be used when handling bubbled
tasks to fullscreen using the reorder approach while maintaining the
intended hide bubble task from recents behavior.

Bug: 404726350
Bug: 388630258
Flag: EXEMPT adding a new method for helping with flags
Test: m droid SystemUITitan
Change-Id: I5264b1e933765ce47d0037f32b16709042ba8542
parent d4394fc0
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -57,6 +57,7 @@ android_library {
        "androidx.core_core-animation",
        "androidx.core_core-animation",
        "androidx.dynamicanimation_dynamicanimation",
        "androidx.dynamicanimation_dynamicanimation",
        "com_android_wm_shell_flags_lib",
        "com_android_wm_shell_flags_lib",
        "com.android.window.flags.window-aconfig-java",
        "jsr330",
        "jsr330",
    ],
    ],
    kotlincflags: ["-Xjvm-default=all"],
    kotlincflags: ["-Xjvm-default=all"],
@@ -91,5 +92,6 @@ java_library {
    ],
    ],
    static_libs: [
    static_libs: [
        "com_android_wm_shell_flags_lib",
        "com_android_wm_shell_flags_lib",
        "com.android.window.flags.window-aconfig-java",
    ],
    ],
}
}
+6 −0
Original line number Original line Diff line number Diff line
@@ -31,6 +31,12 @@ public class BubbleAnythingFlagHelper {
        return enableBubbleAnything() || Flags.enableCreateAnyBubble();
        return enableBubbleAnything() || Flags.enableCreateAnyBubble();
    }
    }


    /** Whether creating any bubble and force task excluded from recents are enabled. */
    public static boolean enableCreateAnyBubbleWithForceExcludedFromRecents() {
        return Flags.enableCreateAnyBubble()
                && com.android.window.flags.Flags.excludeTaskFromRecents();
    }

    /**
    /**
     * Whether creating any bubble and transforming to fullscreen, or the overall bubble anything
     * Whether creating any bubble and transforming to fullscreen, or the overall bubble anything
     * feature is enabled.
     * feature is enabled.