summaryrefslogtreecommitdiff
path: root/core/java/android/window/TaskFragmentParentInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix SplitContainer not updated when folded.Charles Chen2022-10-061-13/+13
| | | | | | | | | | | | | | | | | | | | The root cause is that TaskFragmentParentInfo wasn't be dispatched when there's a display or visibility change because we didn't implement getTaskFragment() in TaskFragment and it led to the TskFragment can't return itself if the predicate function returns true. This CL fixes WC#getTaskFragment and changes to dispatch Task#shouldBeVisible instead of Task#isVisibleRequested. The reason is that the visibleRequested change is not early enough for the scenario that device is folded from unfolded state, and lead to Settings flickering. Test: manual - open Settings and fold the device Test: atest TaskTests#testGetTaskFragment Test: atest TaskFragmentOrganizerControllerTest ActivityRecordTests fixes: 249055633 Change-Id: Ie1c56758697d14b426c9ed713da84e49c9f880d8
* Send TaskFragmentParentInfo for visibility changesCharles Chen2022-09-211-0/+28
| | | | | | | | | | | | This CL propagates visibility from Activity to Task, and dispatch #onTaskFragmentParentInfoChanged is there's a task visiblity update. This CL also send the callback when the associated Display of Task changes. Test: atest TaskFragmentOrganizerControllerTest fixes: 243609832 Change-Id: I3b0198cfd11a3ec4917f92d0a1e540cf16827d08
* Add TaskFragmentParentInfoCharles Chen2022-09-211-0/+130
This CL adds a TaskFragmentParentInfo class and extends onTaskFragmentParentInfoChanged to dispatch display ID and visibility of the parent Task. It makes SplitController able to track visibility and display changes and used to update SplitContainers if there's a folding state change. Test: atest SplitControllerTest TaskFragmentOrganizerControllerTest Bug: 243609832 Bug: 207494880 Change-Id: If3d5db621b20d4005ce0b60e46ac98e1d1e962e3