summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2023-06-01 12:22:48 +0000
committer Ming-Shin Lu <lumark@google.com> 2023-06-05 14:27:14 +0000
commit2564e1a9c7156fa3a8d40a5799f25b1bd2785168 (patch)
treee80c3d8cba87bc70ce8d83f5b0447cd3514d0c0c /libs/androidfw/ApkParsing.cpp
parent7502484675309a42b56187a7008ab664918f762e (diff)
Fix ATMS#focusTopTask set to PiP task even the activity is not focusable
When swiping up to the overview from the split-screen task with showing IME and PiP, normally the WM shell enables the recents input consumer to call ATM#focusTopTask, and it should choose home (or recents) task as the focus app, but the issue case will find PiP as the top task, even the PiP activity was not focusable, this affects InputMonitor ends up missing to apply dismissing IME logic because the current focus app is not the home (or recents) task. As a result, uses isTopActivityFocusable in focusTopTask to align with the PiP activity focusable check to ensure PiP task won't be selected by focusTopTask. Fix: 285218009 Test: atest ActivityTaskManagerServiceTests#testFocusTopTask Test: manual as issue steps: 1) start 2 apps to enter split-screen mode (e.g Settings & Message) 2) start Youtube app to enter PiP mode 3) tap Settings's editor to show IME 4) swiping up to the overview 5) expect IME should be dismissed after entering to the overview. Change-Id: Ib48a24a0024fa0e28079c90dd5388ae8a6b39581
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions