summaryrefslogtreecommitdiff
path: root/tools/aapt2/Debug.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2024-10-03 12:21:51 +0100
committer Yasin Kilicdere <tyk@google.com> 2024-10-03 12:21:51 +0100
commit46880bdb31bca108467a0ccb971aaad6aa46b5e1 (patch)
treef8b3381ecd5125a395ab3365ae6234ba6f3d5c88 /tools/aapt2/Debug.cpp
parent79e00d9110d87e62605a81073ebcf5e1645d7923 (diff)
Make onBeforeUserSwitching calls synchronous.
Otherwise, it's not guaranteed we call lockDeviceNowAndWaitForKeyguardShown after SystemUI's UserTrackerImpl has updated their internal source of truth about the current user. And this sometimes causes the keyguard not being shown in case switching from a user that has their screen lock set to "None" to a user with credentials (i.e. Pattern/Pin/Password). Becase the keyguard would think the current user was the previous user with their lock screen disabled, and skip showing the keyguard, which is incorrect. This CL fixes that issue by waiting for onBeforeUserSwitching calls to complete before moving on. Bug: 369294724 Bug: 331853529 Bug: 360838273 Test: atest UserTrackerImplTest Test: atest UserControllerTest Flag: EXEMPT bugfix Change-Id: Ibb9b757f1385cb74d5f69d9ce3453ef2e9f4c71e
Diffstat (limited to 'tools/aapt2/Debug.cpp')
0 files changed, 0 insertions, 0 deletions