Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c6a2e671 authored by Sarah Chin's avatar Sarah Chin
Browse files

Add car mode changed listener to DeviceStateMonitor

Since Android Auto is a private display, isScreenOn() can't accurately
determine whether the Android Auto display is on or not. Add a listener
for car mode changed to accurately consider the Android Auto display in
shouldEnableHighPowerConsumptionIndications().
Also add more logs for other states.

Test: atest DeviceStateMonitorTest
Bug: 157257888
Change-Id: Id56899b14f46bcf6ae2d800e53b44aad74a75923
parent 2b210e10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment