Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 7757f6f

Browse files
committed
Prevent reboots by default
1 parent 039480e commit 7757f6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/fox2code/mmm/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static boolean isShowcaseMode() {
9494
}
9595

9696
public static boolean shouldPreventReboot() {
97-
return getSharedPreferences().getBoolean("pref_prevent_reboot", false);
97+
return getSharedPreferences().getBoolean("pref_prevent_reboot", true);
9898
}
9999

100100
public static boolean isShowIncompatibleModules() {

app/src/main/res/xml/root_preferences.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
app:singleLineTitle="false" />
104104

105105
<SwitchPreferenceCompat
106-
app:defaultValue="false"
106+
app:defaultValue="true"
107107
app:key="pref_prevent_reboot"
108108
app:icon="@drawable/ic_reboot_24"
109109
app:title="@string/prevent_reboot_pref"

0 commit comments

Comments
 (0)