|
|
@ -286,7 +286,10 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
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));
|
|
|
|
if (checked)
|
|
|
|
|
|
|
|
System.setProperty("fairemail.tcp_keep_alive", Boolean.toString(checked));
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
System.clearProperty("fairemail.tcp_keep_alive");
|
|
|
|
prefs.edit().putBoolean("tcp_keep_alive", checked).apply();
|
|
|
|
prefs.edit().putBoolean("tcp_keep_alive", checked).apply();
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|