From 571e7c991321715cfdc6f817cb892a0e385ae036 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 7 Sep 2023 22:16:24 +0200 Subject: [PATCH] Small improvement --- .../main/java/eu/faircode/email/FragmentOptionsConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java b/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java index 38140f5e6b..8aeabe0e86 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsConnection.java @@ -287,10 +287,10 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { try { System.setProperty("fairemail.tcp_keep_alive", Boolean.toString(checked)); + prefs.edit().putBoolean("tcp_keep_alive", checked).apply(); } catch (Throwable ex) { Log.e(ex); } - prefs.edit().putBoolean("tcp_keep_alive", checked).apply(); } });