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

Commit 9b83f963 authored by Toshiki Kikuchi's avatar Toshiki Kikuchi
Browse files

Migrate enterEesktopByDefaultOnFreeformDisplays to DesktopExpFlags

This is a pure migration.

Flag: com.android.window.flags.enter_desktop_by_default_on_freeform_displays
Bug: 398096175
Test: m
Change-Id: Iaa188c50a65757a647770809b0f4e4080d6b6093
parent 26ee7c4c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -374,7 +374,7 @@ public class DesktopModeStatus {
     * of the display's root [TaskDisplayArea] is set to WINDOWING_MODE_FREEFORM.
     * of the display's root [TaskDisplayArea] is set to WINDOWING_MODE_FREEFORM.
     */
     */
    public static boolean enterDesktopByDefaultOnFreeformDisplay(@NonNull Context context) {
    public static boolean enterDesktopByDefaultOnFreeformDisplay(@NonNull Context context) {
        if (!Flags.enterDesktopByDefaultOnFreeformDisplays()) {
        if (!DesktopExperienceFlags.ENTER_DESKTOP_BY_DEFAULT_ON_FREEFORM_DISPLAYS.isTrue()) {
            return false;
            return false;
        }
        }
        return SystemProperties.getBoolean(ENTER_DESKTOP_BY_DEFAULT_ON_FREEFORM_DISPLAY_SYS_PROP,
        return SystemProperties.getBoolean(ENTER_DESKTOP_BY_DEFAULT_ON_FREEFORM_DISPLAY_SYS_PROP,