mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Default disable TCP keep alive
This commit is contained in:
parent
975bfa6213
commit
25cb978f99
3 changed files with 2 additions and 3 deletions
|
@ -90,7 +90,7 @@ public class ApplicationEx extends Application implements SharedPreferences.OnSh
|
|||
final boolean crash_reports = prefs.getBoolean("crash_reports", false);
|
||||
|
||||
try {
|
||||
boolean tcp_keep_alive = prefs.getBoolean("tcp_keep_alive", true);
|
||||
boolean tcp_keep_alive = prefs.getBoolean("tcp_keep_alive", false);
|
||||
System.setProperty("fairemail.tcp_keep_alive", Boolean.toString(tcp_keep_alive));
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
|
|
@ -295,7 +295,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
|||
etTimeout.setHint(Integer.toString(EmailService.DEFAULT_CONNECT_TIMEOUT));
|
||||
|
||||
swPreferIp4.setChecked(prefs.getBoolean("prefer_ip4", true));
|
||||
swTcpKeepAlive.setChecked(prefs.getBoolean("tcp_keep_alive", true));
|
||||
swTcpKeepAlive.setChecked(prefs.getBoolean("tcp_keep_alive", false));
|
||||
swSslHarden.setChecked(prefs.getBoolean("ssl_harden", false));
|
||||
}
|
||||
|
||||
|
|
|
@ -201,7 +201,6 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:checked="true"
|
||||
android:text="@string/title_advanced_tcp_keep_alive"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
Loading…
Reference in a new issue