Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36c6546f authored by Steve Kondik's avatar Steve Kondik
Browse files

Revert "Fix Reboot dialog to set mReboot to false upon cancellation."

This reverts commit 365ce56b.
parent d9ab5a58
Loading
Loading
Loading
Loading
+14 −19
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ public final class ShutdownThread extends Thread {
    private static Object sIsStartedGuard = new Object();
    private static boolean sIsStarted = false;
    
    private boolean mReboot;
    private static boolean mReboot;
    private static String mRebootReason;

    // Provides shutdown assurance in case the system_server is killed
@@ -127,11 +127,6 @@ public final class ShutdownThread extends Thread {
                                dialog.cancel();
                            }
                        })
                        .setOnCancelListener(new DialogInterface.OnCancelListener() {
                            public void onCancel(DialogInterface dialog) {
                                mReboot = false;
                            }
                        })
                        .create();
            } else {
                dialog = new AlertDialog.Builder(context)