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

Commit b1cd5a40 authored by mattsziklay's avatar mattsziklay
Browse files

Add Multi Instance flag to developer options.

Bug: 336289597
Test: m
Flag: com.android.window.flags.enable_desktop_windowing_multi_instance_features
Change-Id: I6d8887f37e9ca5f0328e1bf62936d957bb6f9ceb
parent fb66a266
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -91,7 +91,9 @@ public enum DesktopModeFlags {
        Flags::enableTopVisibleRootTaskPerUserTracking, true),
    ENABLE_DESKTOP_RECENTS_TRANSITIONS_CORNERS_BUGFIX(
            Flags::enableDesktopRecentsTransitionsCornersBugfix, false),
    ENABLE_DESKTOP_SYSTEM_DIALOGS_TRANSITIONS(Flags::enableDesktopSystemDialogsTransitions, true);
    ENABLE_DESKTOP_SYSTEM_DIALOGS_TRANSITIONS(Flags::enableDesktopSystemDialogsTransitions, true),
    ENABLE_DESKTOP_WINDOWING_MULTI_INSTANCE_FEATURES(
        Flags::enableDesktopWindowingMultiInstanceFeatures, true);

    /**
     * Flag class, to be used in case the enum cannot be used because the flag is not accessible.
+1 −1
Original line number Diff line number Diff line
@@ -1362,7 +1362,7 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
        updateGenericLink();
        final boolean supportsMultiInstance = mMultiInstanceHelper
                .supportsMultiInstanceSplit(mTaskInfo.baseActivity, mTaskInfo.userId)
                && Flags.enableDesktopWindowingMultiInstanceFeatures();
                && DesktopModeFlags.ENABLE_DESKTOP_WINDOWING_MULTI_INSTANCE_FEATURES.isTrue();
        final boolean shouldShowManageWindowsButton = supportsMultiInstance
                && mMinimumInstancesFound;
        final boolean shouldShowChangeAspectRatioButton = HandleMenu.Companion