summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Shawn Lee <syeonlee@google.com> 2024-02-22 12:49:23 -0800
committer Shawn Lee <syeonlee@google.com> 2024-03-11 14:06:20 -0700
commit9a29824c1530d3f95e79cd25f666377b6cb53175 (patch)
treeb0bf18006bf31ef729bb058f3099a84b1c62e74a /libs/androidfw/misc.cpp
parent0104e4148431a78164970328bc61bb5f4cc84a4d (diff)
Stay registered to proximity sensor while activities are occluding keyguard
When a phone call is received while the device's prox sensor is covered (such as when it's face down on a table or in a pocket), we run falsing on all gestures while in the activity as if the sensor is still covered, because we unregister from further updates from the prox sensor once StatusBarState changes from KEYGUARD. This change keeps us subscribed to the prox sensor so we aren't left with stale state in this scenario. Bug: 297497511 Test: added a unit test, passes existing tests for sensor Test: manually checked we still unregister from proximity sensor updates when unlocked, in AOD, in lockscreen shade/QS, in bouncer Flag: NONE Change-Id: I55f1472593d37f47574d4bf3c40ca7d69f86bad8
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions