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

Skip to content
Commit 8e5d5009 authored by dakinola's avatar dakinola Committed by Daniel Akinola
Browse files

Fix Partial Screenshare always launching split root when launching task from recents

There is a long standing bug with Partial Screenshare where if the target app is part of a split pair and we attempt to launch it from recents, while it is in the background, it will always launch the split root (whichever app started the split) instead of the selected app.

This is due to ActivtiyTaskManager#startActivityFromRecents's logic for launching an activity, instead of launching the task fresh in fullscreen, it leads to StageCoordinator attempting to launch the app in split screen instead of fullscreen.

By leveraging existing logic in RootWindowContainer#getOrCreateRootTask which handles finding the root task to launch, we can instead change the conditional path taken when starting the task, so it will be launched in fullscreen, ensuring that the selected app will be shared instead of the split root.

Bug: 299597333
Fix: 299597333
Test: atest com.android.systemui.mediaprojection.appselector.MediaProjectionAppSelectorControllerTest
Test: atest com.android.systemui.mediaprojection.appselector.data.ShellRecentTaskListProviderTest
Change-Id: I0338956041c750453b781d1e8f407e705f7f9a60
parent d3f3084d
Loading
Loading
Loading
Loading
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