Skip to content
Snippets Groups Projects
Commit d8589393 authored by Daniel Akinola's avatar Daniel Akinola Committed by Android (Google) Code Review
Browse files

Merge "Fix Partial Screenshare always launching split root when launching task...

Merge "Fix Partial Screenshare always launching split root when launching task from recents" into main
parents 31d917a5 8e5d5009
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ import android.content.ComponentName
data class RecentTask(
val taskId: Int,
val displayId: Int,
@UserIdInt val userId: Int,
val topActivityComponent: ComponentName?,
val baseIntentComponent: ComponentName?,
......
......@@ -60,6 +60,7 @@ constructor(
.map {
RecentTask(
it.taskId,
it.displayId,
it.userId,
it.topActivity,
it.baseIntent?.component,
......
......@@ -130,10 +130,10 @@ constructor(
view.width,
view.height
)
activityOptions.setPendingIntentBackgroundActivityStartMode(
activityOptions.pendingIntentBackgroundActivityStartMode =
MODE_BACKGROUND_ACTIVITY_START_ALLOWED
)
activityOptions.launchCookie = launchCookie
activityOptions.launchDisplayId = task.displayId
activityTaskManager.startActivityFromRecents(task.taskId, activityOptions.toBundle())
resultHandler.returnSelectedApp(launchCookie)
......
......@@ -240,6 +240,7 @@ class MediaProjectionAppSelectorControllerTest : SysuiTestCase() {
): RecentTask {
return RecentTask(
taskId = taskId,
displayId = 0,
topActivityComponent = topActivityComponent,
baseIntentComponent = ComponentName("com", "Test"),
userId = userId,
......
......@@ -128,6 +128,7 @@ class ShellRecentTaskListProviderTest : SysuiTestCase() {
private fun createRecentTask(taskId: Int): RecentTask =
RecentTask(
taskId = taskId,
displayId = 0,
userId = 0,
topActivityComponent = null,
baseIntentComponent = null,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment