summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-02-20 15:49:13 +0000
committer Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2024-02-27 13:29:13 +0000
commit17130a37ba2d0b55d1444f558e2a0c92d4e049dd (patch)
tree850a2ad32c22d8f79b06313f4570ec5e675098c4 /libs
parentb81ff5780c2e69ac798e7c0b702f161b3128dac5 (diff)
[1/n] Replace read-only desktop windowing flag with runtime flag
Replace use of `enable_desktop_windowing` flag with `enable_desktop_windowing_mode` flag. Bug: 304778354 Fixes: 326060018 Test: build & `adb shell device_config put lse_desktop_experience com.android.window.flags.enable_desktop_windowing_mode true && adb reboot` desktop windowing mode should be enabled. Change-Id: I45c1ad6dc3b476af83725ec6c53e9b83199ec1bb
Diffstat (limited to 'libs')
-rw-r--r--libs/WindowManager/Shell/aconfig/multitasking.aconfig8
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeStatus.java6
2 files changed, 2 insertions, 12 deletions
diff --git a/libs/WindowManager/Shell/aconfig/multitasking.aconfig b/libs/WindowManager/Shell/aconfig/multitasking.aconfig
index 0967f4e83c74..b61dda4c4e53 100644
--- a/libs/WindowManager/Shell/aconfig/multitasking.aconfig
+++ b/libs/WindowManager/Shell/aconfig/multitasking.aconfig
@@ -8,14 +8,6 @@ flag {
}
flag {
- name: "enable_desktop_windowing"
- namespace: "multitasking"
- description: "Enables desktop windowing"
- bug: "304778354"
- is_fixed_read_only: true
-}
-
-flag {
name: "enable_split_contextual"
namespace: "multitasking"
description: "Enables invoking split contextually"
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeStatus.java b/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeStatus.java
index 88949b2a5acd..1f0eb9cb4868 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeStatus.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeStatus.java
@@ -18,15 +18,13 @@ package com.android.wm.shell.desktopmode;
import android.os.SystemProperties;
-import com.android.wm.shell.Flags;
+import com.android.window.flags.Flags;
/**
* Constants for desktop mode feature
*/
public class DesktopModeStatus {
- private static final boolean ENABLE_DESKTOP_WINDOWING = Flags.enableDesktopWindowing();
-
/**
* Flag to indicate whether desktop mode proto is available on the device
*/
@@ -79,7 +77,7 @@ public class DesktopModeStatus {
*/
public static boolean isEnabled() {
// Check for aconfig flag first
- if (ENABLE_DESKTOP_WINDOWING) {
+ if (Flags.enableDesktopWindowingMode()) {
return true;
}
// Fall back to sysprop flag