mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
a580b09b4e
commit
571e7c9913
|
@ -287,10 +287,10 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
try {
|
try {
|
||||||
System.setProperty("fairemail.tcp_keep_alive", Boolean.toString(checked));
|
System.setProperty("fairemail.tcp_keep_alive", Boolean.toString(checked));
|
||||||
|
prefs.edit().putBoolean("tcp_keep_alive", checked).apply();
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
}
|
}
|
||||||
prefs.edit().putBoolean("tcp_keep_alive", checked).apply();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue