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

Commit 866e1ad7 authored by Jorge Gil's avatar Jorge Gil
Browse files

Add ENABLE_DW_SCVH_CACHE to dev options

Flag: com.android.window.flags.enable_desktop_windowing_scvh_cache_bug_fix
Bug: 360452034
Test: m
Change-Id: I9994100bb6958adafbadf32f79ded1811c16b77d
parent b7b68024
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ public enum DesktopModeFlags {
            Flags::enableDesktopWindowingMultiInstanceFeatures, true),
    ENABLE_DESKTOP_WINDOWING_PERSISTENCE(Flags::enableDesktopWindowingPersistence, true),
    ENABLE_DESKTOP_WINDOWING_QUICK_SWITCH(Flags::enableDesktopWindowingQuickSwitch, true),
    ENABLE_DESKTOP_WINDOWING_SCVH_CACHE(Flags::enableDesktopWindowingScvhCacheBugFix, true),
    ENABLE_DESKTOP_WINDOWING_SIZE_CONSTRAINTS(Flags::enableDesktopWindowingSizeConstraints, true),
    ENABLE_DESKTOP_WINDOWING_TASKBAR_RUNNING_APPS(Flags::enableDesktopWindowingTaskbarRunningApps,
            true),
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ public class DesktopModeStatus {
     * there should be no pooling.
     */
    public static int getWindowDecorScvhPoolSize(@NonNull Context context) {
        if (!Flags.enableDesktopWindowingScvhCacheBugFix()) return 0;
        if (!DesktopModeFlags.ENABLE_DESKTOP_WINDOWING_SCVH_CACHE.isTrue()) return 0;
        final int maxTaskLimit = getMaxTaskLimit(context);
        if (maxTaskLimit > 0) {
            return maxTaskLimit;