summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Orhan Uysal <uysalorhan@google.com> 2025-01-16 17:19:23 +0000
committer Orhan Uysal <uysalorhan@google.com> 2025-01-16 17:19:23 +0000
commit85f890f282a8c49e46bea2ff2d1b1ccad82876d6 (patch)
tree99938970dfc5bbfe8c775231d12d247b9c404cbb
parentb6a6e2869660325c4b4ad72ee7fe82443169cfbe (diff)
Add splashscreen to apps after reboot.
Enable splashscreen in apps by default with app launch. Bug: 379147407 Test: m & reboot device and go back to desktop windowing see Flag: EXEMPT Bug fix Change-Id: I70ffb914004d01ad8ddf8041c638f801b1848f7d
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt b/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt
index f38957e48dbf..5dbfbdbbb6d5 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt
@@ -57,6 +57,7 @@ import android.window.DesktopModeFlags.DISABLE_NON_RESIZABLE_APP_SNAP_RESIZE
import android.window.DesktopModeFlags.ENABLE_DESKTOP_WINDOWING_WALLPAPER_ACTIVITY
import android.window.DesktopModeFlags.ENABLE_WINDOWING_DYNAMIC_INITIAL_BOUNDS
import android.window.RemoteTransition
+import android.window.SplashScreen.SPLASH_SCREEN_STYLE_ICON
import android.window.TransitionInfo
import android.window.TransitionInfo.Change
import android.window.TransitionRequestInfo
@@ -1354,7 +1355,10 @@ class DesktopTasksController(
wct.startTask(
taskId,
ActivityOptions.makeBasic()
- .apply { launchWindowingMode = WINDOWING_MODE_FREEFORM }
+ .apply {
+ launchWindowingMode = WINDOWING_MODE_FREEFORM
+ splashScreenStyle = SPLASH_SCREEN_STYLE_ICON
+ }
.toBundle(),
)
}