summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author dakinola <dakinola@google.com> 2023-10-16 10:57:03 +0000
committer Daniel Akinola <dakinola@google.com> 2023-10-16 14:46:19 +0000
commit8e5d50095115b389aea8bd17408575c7a54ecd5d (patch)
treecc9e4e440defff8df02240546cf2b22ce3f2a3d1 /libs/androidfw/ZipFileRO.cpp
parentd3f3084d75a6a1e02ddffd2487161fc76fb4270f (diff)
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
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions