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

Skip to content
Commit bd803b35 authored by Emilio López's avatar Emilio López
Browse files

Fix mDeskModeKeepsScreenOn logic

If mDeskModeKeepsScreenOn was set to 1, the screen still timeouted because
mCurUiMode != Configuration.UI_MODE_TYPE_DESK. Given that mCurUiMode is
a bitmask field also consisting of UI_MODE_NIGHT_MASK, fix this check
so the behaviour is corrected.

See core/java/android/content/res/Configuration.java for the explanation
on uiMode's values

Change-Id: Ic7a0fd375dd4700eacb48974e20ad387732fc1d5
parent 00eb75d3
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