From 34cb7bda51ec5716f24db107532555d64afa7177 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Wed, 14 Dec 2016 14:15:47 +0100 Subject: enable advanced reboot menu by default Signed-off-by: Wolfgang Wiedmeyer --- services/core/java/com/android/server/power/ShutdownThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/power/ShutdownThread.java b/services/core/java/com/android/server/power/ShutdownThread.java index 36a9ca2..76acf9d 100644 --- a/services/core/java/com/android/server/power/ShutdownThread.java +++ b/services/core/java/com/android/server/power/ShutdownThread.java @@ -174,7 +174,7 @@ public final class ShutdownThread extends Thread { KeyguardManager km = (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE); boolean keyguardLocked = km.inKeyguardRestrictedInputMode() && km.isKeyguardSecure(); boolean advancedRebootEnabled = CMSettings.Secure.getInt(context.getContentResolver(), - CMSettings.Secure.ADVANCED_REBOOT, 0) == 1; + CMSettings.Secure.ADVANCED_REBOOT, 1) == 1; boolean isPrimaryUser = UserHandle.getCallingUserId() == UserHandle.USER_OWNER; return advancedRebootEnabled && !keyguardLocked && isPrimaryUser; -- cgit v1.1