summaryrefslogtreecommitdiff
path: root/core/java/android/window/TaskFragmentCreationParams.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix ActivityEmbedding issues with REORDER_TO_FRONTChris Li2023-01-091-2/+62
| | | | | | | | | | | | | | | | | | 1. When the primary TaskFragment is finished with shouldFinishDependent = false, it should still finish the placeholder TaskFragment. Otherwise it may leave the placeholder there forever. 2. In case the app starts two activities one after another, if the first Intent is not handled, but the second is, when the first activity onCreate reach the organizer, it may be reparented to a new TaskFragment that is on top of the second activity. We want to make sure that the TaskFragment is created at the same position as the reparent Activity. Bug: 255628567 Test: manually verify with the test app in the bug. Test: atest WMJetpackUnitTests:TaskFragmentContainerTest Test: atest WmTests:TaskFragmentOrganizerControllerTest Change-Id: Ie48d7e46786cabcf3a1ededa9275f0223e2f477f
* Fix ActivityEmbedding placeholder launching above fullscreen activityChris Li2022-12-081-8/+58
| | | | | | | | | | | | | | Before, we always place the new created TaskFragment on the top of the Task. Now, when creating TaskFragment for placeholder, we place the new TasKFragment right above the primary TaskFragment. In case there is a fullscreen transparent Activity on top of the primary Activity, this prevents us from launching the placeholder on top of the transparent Activity. Bug: 261550242 Test: atest WmTests:TaskFragmentOrganizerControllerTest Change-Id: I163e9ca1637db45e8695d40a31f2a2c6a4f05189
* Promote TaskFragment APIs to TestAPiCharles Chen2021-07-261-10/+21
| | | | | | | | | | | ... to verify their behaviors in CTS Also wraps ITaskFragmentOrganizer to TaskFragmentOrganizerToken because we cannot make .aidl a TestApi. Test: presubmit Bug: 192442647 Change-Id: I848a33340449189af7d9d66a6468a9e397a0f53a
* Add WindowingMode in TaskFragmentCreationParamsChris Li2021-06-231-3/+64
| | | | | | | | | Allow organizer to set the initial windowing mode for creating TaskFragment. Bug: 190433129 Test: N/A Change-Id: I8848a27f69108ebc62be3342cd6f1656ec488433
* Add TaskFragmentOrganizer APIChris Li2021-06-221-2/+15
| | | | | | | | Mainly the API surface. Bug: 190433129 Test: N/A Change-Id: I426b7fdbe62d58213c5e49a4773dd5fda0eb4dfe
* Add WindowContainerTransaction APIs for create/deleteTaskFragmentChris Li2021-06-221-0/+108
This change contains mainly the function signatures and data classes. The actual implemenation will come in a separate cl. Bug: 190433129 Test: N/A Change-Id: I4f9695cea270cc06f2f6b1a2c56245cd2a43b9fd