Loading libs/WindowManager/Shell/AndroidManifest.xml +0 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,6 @@ android:name=".desktopmode.DesktopWallpaperActivity" android:excludeFromRecents="true" android:launchMode="singleInstance" android:showForAllUsers="true" android:theme="@style/DesktopWallpaperTheme" /> <activity Loading libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +12 −5 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ import android.os.Binder import android.os.Handler import android.os.IBinder import android.os.SystemProperties import android.os.UserHandle import android.util.Size import android.view.Display.DEFAULT_DISPLAY import android.view.DragEvent Loading Loading @@ -1174,7 +1175,11 @@ class DesktopTasksController( private fun addWallpaperActivity(wct: WindowContainerTransaction) { logV("addWallpaperActivity") val intent = Intent(context, DesktopWallpaperActivity::class.java) val userHandle = UserHandle.of(userId) val userContext = context.createContextAsUser(userHandle, /* flags= */ 0) val intent = Intent(userContext, DesktopWallpaperActivity::class.java) intent.putExtra(Intent.EXTRA_USER_HANDLE, userId); val options = ActivityOptions.makeBasic().apply { launchWindowingMode = WINDOWING_MODE_FULLSCREEN Loading @@ -1182,11 +1187,13 @@ class DesktopTasksController( ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS } val pendingIntent = PendingIntent.getActivity( context, PendingIntent.getActivityAsUser( userContext, /* requestCode= */ 0, intent, PendingIntent.FLAG_IMMUTABLE PendingIntent.FLAG_IMMUTABLE, /* bundle= */ null, userHandle ) wct.sendPendingIntent(pendingIntent, intent, options.toBundle()) } Loading libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopWallpaperActivity.kt +0 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ import com.android.wm.shell.protolog.ShellProtoLogGroup.WM_SHELL_DESKTOP_MODE class DesktopWallpaperActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { ProtoLog.d(WM_SHELL_DESKTOP_MODE, "DesktopWallpaperActivity: onCreate") super.onCreate(savedInstanceState) window.addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE) } Loading Loading
libs/WindowManager/Shell/AndroidManifest.xml +0 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,6 @@ android:name=".desktopmode.DesktopWallpaperActivity" android:excludeFromRecents="true" android:launchMode="singleInstance" android:showForAllUsers="true" android:theme="@style/DesktopWallpaperTheme" /> <activity Loading
libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +12 −5 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ import android.os.Binder import android.os.Handler import android.os.IBinder import android.os.SystemProperties import android.os.UserHandle import android.util.Size import android.view.Display.DEFAULT_DISPLAY import android.view.DragEvent Loading Loading @@ -1174,7 +1175,11 @@ class DesktopTasksController( private fun addWallpaperActivity(wct: WindowContainerTransaction) { logV("addWallpaperActivity") val intent = Intent(context, DesktopWallpaperActivity::class.java) val userHandle = UserHandle.of(userId) val userContext = context.createContextAsUser(userHandle, /* flags= */ 0) val intent = Intent(userContext, DesktopWallpaperActivity::class.java) intent.putExtra(Intent.EXTRA_USER_HANDLE, userId); val options = ActivityOptions.makeBasic().apply { launchWindowingMode = WINDOWING_MODE_FULLSCREEN Loading @@ -1182,11 +1187,13 @@ class DesktopTasksController( ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS } val pendingIntent = PendingIntent.getActivity( context, PendingIntent.getActivityAsUser( userContext, /* requestCode= */ 0, intent, PendingIntent.FLAG_IMMUTABLE PendingIntent.FLAG_IMMUTABLE, /* bundle= */ null, userHandle ) wct.sendPendingIntent(pendingIntent, intent, options.toBundle()) } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopWallpaperActivity.kt +0 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ import com.android.wm.shell.protolog.ShellProtoLogGroup.WM_SHELL_DESKTOP_MODE class DesktopWallpaperActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { ProtoLog.d(WM_SHELL_DESKTOP_MODE, "DesktopWallpaperActivity: onCreate") super.onCreate(savedInstanceState) window.addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE) } Loading