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

Commit fd24d1ec authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add helper for bubble anything with recents exclusion check." into main

parents 26fac210 0fae73cf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ android_library {
        "androidx.core_core-animation",
        "androidx.dynamicanimation_dynamicanimation",
        "com_android_wm_shell_flags_lib",
        "com.android.window.flags.window-aconfig-java",
        "jsr330",
    ],
    kotlincflags: ["-Xjvm-default=all"],
@@ -91,5 +92,6 @@ java_library {
    ],
    static_libs: [
        "com_android_wm_shell_flags_lib",
        "com.android.window.flags.window-aconfig-java",
    ],
}
+6 −0
Original line number Diff line number Diff line
@@ -31,6 +31,12 @@ public class BubbleAnythingFlagHelper {
        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
     * feature is enabled.