diff --git a/services/core/java/com/android/server/policy/GlobalActions.java b/services/core/java/com/android/server/policy/GlobalActions.java index 9dc6a89fbf2..9b1d87a4670 100644 --- a/services/core/java/com/android/server/policy/GlobalActions.java +++ b/services/core/java/com/android/server/policy/GlobalActions.java @@ -457,7 +457,7 @@ public boolean showBeforeProvisioning() { @Override public void onPress() { // shutdown by making sure radio and power are handled accordingly. - mWindowManagerFuncs.shutdown(true /* confirm */); + mWindowManagerFuncs.shutdown(false /* confirm */); } } diff --git a/services/core/java/com/android/server/power/ShutdownThread.java b/services/core/java/com/android/server/power/ShutdownThread.java index f15e93ef39b..b6c51ad4edd 100644 --- a/services/core/java/com/android/server/power/ShutdownThread.java +++ b/services/core/java/com/android/server/power/ShutdownThread.java @@ -217,7 +217,7 @@ static void shutdownInner(final Context context, boolean confirm) { ? com.android.internal.R.string.reboot_title : com.android.internal.R.string.power_off); - if (!advancedReboot || !mReboot || mRebootSafeMode) { + if (!advancedReboot || mRebootSafeMode) { confirmDialogBuilder.setMessage(resourceId); } else { confirmDialogBuilder