Skip to content

Commit

Permalink
Revert "GlobalActions: Confirm power off"
Browse files Browse the repository at this point in the history
This reverts commit 27f8f8e.

Signed-off-by: AKabhishek <[email protected]>
  • Loading branch information
AKabhishek committed Jun 25, 2017
1 parent 733028c commit 7a6f827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a6f827

Please sign in to comment.