summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Yao Qijing <yaoqq@google.com> 2023-04-06 10:39:56 +0000
committer Yao Qijing <yaoqq@google.com> 2023-04-07 06:10:29 +0000
commit23bc78ac57a22984c714b3d1f77cd4f2f851d8d2 (patch)
treef79ea4604a9052df2e044a49c9c490a4f5fdd113 /libs/androidfw/FileStream.cpp
parentad24c2d9a46d646ab1d730d23718282eb68b135b (diff)
Skip home activity in removeUnreachableHiddenTasks
For devices that support multiple displays, when connecting to a new display, a new home activity will be added under the new display. It triggers RecentTasks#removeUnreachableHiddenTasks() to clean up the unreachable hidden tasks, which may also remove the home activity of the old display(eg. when the task on the old display is in fullscreen, the home activity is an unreachable hidden task and therefore, gets removed). This is not a desired behavior because each display is expected to have its own home activity. This change adds a check to avoid removing the home activities in the removeUnreachableHiddenTasks() method. Bug: 274862596 Test: Manual test, make sure that connecting an external display doesn't remove the original home activity. Change-Id: I1b7e8c9706d8b5ab53766779aec63141ca0669ed
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions