summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Matt Pietal <mpietal@google.com> 2023-04-25 19:44:27 +0000
committer Matt Pietal <mpietal@google.com> 2023-04-25 19:44:27 +0000
commitdd564d207d24e83a5f724f632bf80e5ce6764046 (patch)
treebdadf1bcd870edcc4ef74e49a6a7804fe5a0add6 /libs/androidfw/FileStream.cpp
parentcd7e7a37c5d17221e9ce987f431d4ac4db8c35ae (diff)
Make sure to reset isFoldHandled
A previous commit reset this flag in select circumstances. However, there are other paths that also need to be covered. Always reset isFoldHandled every single time the device has been folded and the screen has turned on. This should fully prevent errant calls to showAodUI(), which forces keyguard to show over any other screen. Paths that could've produced the issue involve: 1. Unfold and unlock 2. Fold the device, it should go to AOD 3. Cover the prox sensor (as if putting in purse/pocket) and let screen timeout until black. 4. Wait a few moments to let the device really sleep 5. Uncover sensor and unlock with Side FPS immediately Test: atest FoldAodAnimationsControllerTest Fixes: 273681779 Change-Id: I3260125fa545494c28e52ecf02825704ffbad295
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions