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

Commit 85f890f2 authored by Orhan Uysal's avatar Orhan Uysal
Browse files

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
parent b6a6e286
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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(),
                    )
                }