Skip to content

Commit 9744d8c

Browse files
fix: change switch default value to true
1 parent fd82a27 commit 9744d8c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

app/src/main/java/com/wmods/wppenhacer/ui/fragments/base/BasePreferenceFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private boolean checkStoragePermission(Object newValue) {
104104
@SuppressLint("ApplySharedPref")
105105
private void chanceStates(String key) {
106106

107-
var update_check = mPrefs.getBoolean("update_check", false);
107+
var update_check = mPrefs.getBoolean("update_check", true);
108108

109109
if (update_check) {
110110
setPreferenceState("update_check", true);

app/src/main/java/com/wmods/wppenhacer/xposed/core/FeatureLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private static void initComponents(ClassLoader loader, XSharedPreferences pref)
188188
}
189189

190190
// Check for WAE Update
191-
if (App.isOriginalPackage() && pref.getBoolean("update_check", false)) {
191+
if (App.isOriginalPackage() && pref.getBoolean("update_check", true)) {
192192
if (activity.getClass().getSimpleName().equals("HomeActivity") && state == WppCore.ActivityChangeState.ChangeType.START) {
193193
CompletableFuture.runAsync(new UpdateChecker(activity));
194194
}

app/src/main/res/values/strings.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,5 +408,10 @@
408408
<string name="lite_mode">Lite Mode</string>
409409
<string name="lite_mode_sum">Lite Mode disables most theme features and the connection bridge that keeps WhatsApp always active is turned off.</string>
410410
<string name="update_check">Automatically Check for Update</string>
411-
<string name="update_check_sum">Enable or Disable Auto Check for Update. This will disable the popup inside the WhatsApp Application.</string>
411+
<string name="update_check_sum">
412+
Enable or Disable Auto Check for Update. This will disable the popup inside the WhatsApp Application.\n
413+
<font color="#FFFF0000">
414+
WARNING: YOU WILL NOT BE NOTIFIED WHEN THERE'S A NEW UPDATE, USE THIS CAREFULLY AND DON'T REPORT ISSUE IF YOU'RE USING OUTDATED VERSION!
415+
</font>
416+
</string>
412417
</resources>

0 commit comments

Comments
 (0)