Skip to content

Commit f3469eb

Browse files
committed
disable wake lock based on 2+ screen undims
It's better for this to be done in an explicit way.
1 parent db009aa commit f3469eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/core/java/com/android/server/power/ScreenUndimDetector.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class ScreenUndimDetector {
4848

4949
/** DeviceConfig flag: is keep screen on feature enabled. */
5050
static final String KEY_KEEP_SCREEN_ON_ENABLED = "keep_screen_on_enabled";
51-
private static final boolean DEFAULT_KEEP_SCREEN_ON_ENABLED = true;
51+
private static final boolean DEFAULT_KEEP_SCREEN_ON_ENABLED = false;
5252
private static final int OUTCOME_POWER_BUTTON =
5353
FrameworkStatsLog.TIMEOUT_AUTO_EXTENDED_REPORTED__OUTCOME__POWER_BUTTON;
5454
private static final int OUTCOME_TIMEOUT =

0 commit comments

Comments
 (0)