From 133b416b190c78e3b500353cd6426a6509f384c9 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 10 May 2019 20:59:27 +0200 Subject: [PATCH] Enable RLAH by default --- .../main/java/eu/faircode/email/FragmentOptionsConnection.java | 2 +- app/src/main/java/eu/faircode/email/Helper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java b/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java index 29f40db0be..693ca16e0b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java @@ -192,7 +192,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre break; } - swRlah.setChecked(prefs.getBoolean("rlah", false)); + swRlah.setChecked(prefs.getBoolean("rlah", true)); swRoaming.setChecked(prefs.getBoolean("roaming", true)); } diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index f8eaa2c29d..f38cd288f7 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -866,7 +866,7 @@ public class Helper { static NetworkState getNetworkState(Context context) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean metered = prefs.getBoolean("metered", true); - boolean rlah = prefs.getBoolean("rlah", false); + boolean rlah = prefs.getBoolean("rlah", true); boolean roaming = prefs.getBoolean("roaming", true); NetworkState state = new NetworkState();