diff options
| author | 2025-03-05 17:58:11 -0800 | |
|---|---|---|
| committer | 2025-03-14 12:24:20 -0700 | |
| commit | 5378acc31a2ac7bd46a0a8f53f7fa3e6ca64c694 (patch) | |
| tree | 023f2b4711ba47c037dd7011f4d6490953c97039 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 05136c4c4106c0a6b2cd3cae076c9ff01afdbc06 (diff) | |
Check availability of hub when receiving EXTRA_TRIGGER_HUB lock request
If the glanceable hub isn't available when the power button behavior in
PhoneWindowManager sends the EXTRA_TRIGGER_HUB extra, the device will
just lock but not go to sleep or show the hub. This can happen for a
variety of reasons as PhoneWindowManager only does some basic checks
for the hub's availability.
We instead check directly if the hub is enabled and if the "when to
show hub automatically setting" is enabled. If either is false, we
request that the device go to sleep instead.
Bug: 401079452
Bug: 396662135
Fixes: 396662135
Test: atest KeyguardViewMediatorTestKt
Flag: com.android.systemui.glanceable_hub_v2
Change-Id: I8c195826cf8904689342306be94f6d0f3f39206e
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions