summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorJosh Tsuji <tsuji@google.com>2022-01-21 13:42:54 -0500
committerJosh Tsuji <tsuji@google.com>2022-01-24 12:04:12 -0500
commita20d7f2708ac3c37b281e3b63b5e22ecf43d4e21 (patch)
tree2e961f183b149567bb5bb1df2a9b1a6fa9f7a7c8 /core/java/android/inputmethodservice/InputMethodService.java
parent69455cffdeb698c77faf7441b0dae11ada91fa0d (diff)
Check that PowerManager#isInteractive is false before showing the AOD UI for screen off.
The callback that runs after a delay during the screen off animation to show the AOD UI after the light reveal animation is supposed to be cancelled in onStartedWakingUp if the screen off is cancelled. However, some bugs make it seem like this may not be happening, resulting in the AOD UI being shown while we are awake and unlocked. This causes the shade to look like the lock screen. It also causes a transparent shade background and possibly an all-white screen. While we have not been able to reproduce this under normal conditions, I manually called showAodUi while unlocked/awake, and verified that these conditions result. Since onStartedWakingUp is dispatched asynchronously, it's possible that the device wakes up before the callback is cancelled. By checking PowerManager's state directly, we can avoid this. Fixes: 213794749 Test: atest SystemUITests Change-Id: I7e2d1ca7e3c9487903f74fb06575cc0a36b9502c
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions