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

Commit 1bcc5577 authored by Darrell Shi's avatar Darrell Shi
Browse files

Prevent dreaming when settings disabled

Previously after a reboot, the mDreamsActivateOnSleepSetting value is
set to the default which is true on some devices, leading to the device
trying to dream instead of doze. This change adds a check for dream
settings enabled, which is default to false.

Test: atest PowerManagerServiceTest
Test: no longer see trying to dream from logs after device restart
Fix: 436573884
Flag: android.service.dreams.nap_when_dream_enabled
Change-Id: Id5d1b399f3789b0f8c3286c89b5bc01fc212526c
parent 9f37a591
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment