summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Eric Lin <ericth@google.com> 2024-06-27 12:54:54 +0000
committer Eric Lin <ericth@google.com> 2024-07-01 08:50:41 +0000
commit81441aa50f45c333941baaea31da2019374f223c (patch)
tree471845fb87cb5632c829ad3d423ab75ce48e35bd /libs/androidfw/ObbFile.cpp
parentc5002e47d6a5382821b7c893cecd6cb0c140be49 (diff)
Mark pinned activity task as auto-removeable from recents.
Tasks resumed from Picture-in-Picture (PIP) mode originating from a non-single activity task were unintentionally added to the recents. We initially observed this issue on the 24D1-dev branch when exiting PIP (b/323315206), which was fixed by ag/26565884 on the main branch. However, we encountered another scenario when exiting PIP that originated from a non-single activity task with split pair. It involves reorder operations (`mHierarchyOps`) to split paired in recents. The pinned activity task was being added to the recents while resuming the top PIP activity. This change takes a different approach compared to previous attempt. Instead of checking if the task is a pinned activity task from a non-single activity task for each `RecentTasks.add`, this change only marks the pinned activity task as auto-removable and then lets `reparent` in `Task.setWindowingMode` cleanup resources for destory. This approach prevents empty pinned task from appearing in recents. Test: atest WmTests:TaskTests WmTests:RootWindowContainerTests Fix: 348085976 Flag: EXEMPT bugfix Change-Id: I8ed5938f122988383b11fe0820723de980313540
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions