Loading libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +5 −2 Original line number Diff line number Diff line Loading @@ -1486,6 +1486,7 @@ class DesktopTasksController( } private fun addLaunchHomePendingIntent(wct: WindowContainerTransaction, displayId: Int) { val userHandle = UserHandle.of(userId) val launchHomeIntent = Intent(Intent.ACTION_MAIN).apply { if (displayId != DEFAULT_DISPLAY) { Loading @@ -1501,11 +1502,13 @@ class DesktopTasksController( ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS } val pendingIntent = PendingIntent.getActivity( PendingIntent.getActivityAsUser( context, /* requestCode= */ 0, launchHomeIntent, PendingIntent.FLAG_IMMUTABLE, /* options= */ null, userHandle, ) wct.sendPendingIntent(pendingIntent, launchHomeIntent, options.toBundle()) } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +5 −2 Original line number Diff line number Diff line Loading @@ -1486,6 +1486,7 @@ class DesktopTasksController( } private fun addLaunchHomePendingIntent(wct: WindowContainerTransaction, displayId: Int) { val userHandle = UserHandle.of(userId) val launchHomeIntent = Intent(Intent.ACTION_MAIN).apply { if (displayId != DEFAULT_DISPLAY) { Loading @@ -1501,11 +1502,13 @@ class DesktopTasksController( ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS } val pendingIntent = PendingIntent.getActivity( PendingIntent.getActivityAsUser( context, /* requestCode= */ 0, launchHomeIntent, PendingIntent.FLAG_IMMUTABLE, /* options= */ null, userHandle, ) wct.sendPendingIntent(pendingIntent, launchHomeIntent, options.toBundle()) } Loading