summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Shawn Lin <shawnlin@google.com> 2023-02-08 14:17:41 +0800
committer Shawn Lin <shawnlin@google.com> 2023-02-09 10:41:17 +0800
commit24b2a01c506de96c744f132bb7e0d6cec729fc38 (patch)
tree692faa448b089b3fd269a3087776aad8589bceb5 /libs/androidfw/ApkParsing.cpp
parent1a83f7a64260f6e129900006febe2b2f48857434 (diff)
Fix incorrect behavior of back button in kids mode
Previously, we created a root task with its size excluded the nav bar for kids mode and put all tasks in this root task execpt for HOME task since the kids mode team want the kids launcher to be fullscreen. The issue can be reproduced as following steps: 1. Task Hierarchy when Start App1 - Kid's Root Task - App1 Task - Home 2. Task Hierarchy when Start home - Home - Kid's Root Task - App1 Task 3. Task Hierarchy when Start App2 - Kid's Root Task - App2 Task - App1 Task - Home 4. Task Hierarchy when user press BACK key. The App1 task will be brought to front instead of Home - Kid's Root Task - App1 Task - App2 Task - Home Solution: We now also put HOME task in the root task but set it's bounds to fullscreen size and set the window crop of the root task to fullscreen size so that HOME task can extend to fullscreen size. Bug: 266507175 Test: 1. launch app1 and press Home 2. launch app2 and press Back 3. Home should be brought to front Change-Id: Ic6d5f65f277a4b73062d51fc67dcc300ab1ce15b
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions