summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-14 14:15:47 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-14 14:15:47 +0100
commit34cb7bda51ec5716f24db107532555d64afa7177 (patch)
tree25b3a1c5173c4e3209456ff54746f536d749dff1
parent652ad25a777d0a6196b7a3d6f34a7d23ac9e69f1 (diff)
downloadframeworks_base-34cb7bda51ec5716f24db107532555d64afa7177.zip
frameworks_base-34cb7bda51ec5716f24db107532555d64afa7177.tar.gz
frameworks_base-34cb7bda51ec5716f24db107532555d64afa7177.tar.bz2
enable advanced reboot menu by default
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--services/core/java/com/android/server/power/ShutdownThread.java2
1 files changed, 1 insertions, 1 deletions
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;