mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Hide keep alive option
This commit is contained in:
@@ -62,6 +62,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
||||
private EditText etTimeout;
|
||||
private SwitchCompat swPreferIp4;
|
||||
private SwitchCompat swTcpKeepAlive;
|
||||
private TextView tvTcpKeepAliveHint;
|
||||
private SwitchCompat swSslHarden;
|
||||
private Button btnManage;
|
||||
private TextView tvNetworkMetered;
|
||||
@@ -89,6 +90,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
||||
etTimeout = view.findViewById(R.id.etTimeout);
|
||||
swPreferIp4 = view.findViewById(R.id.swPreferIp4);
|
||||
swTcpKeepAlive = view.findViewById(R.id.swTcpKeepAlive);
|
||||
tvTcpKeepAliveHint = view.findViewById(R.id.tvTcpKeepAliveHint);
|
||||
swSslHarden = view.findViewById(R.id.swSslHarden);
|
||||
btnManage = view.findViewById(R.id.btnManage);
|
||||
|
||||
@@ -168,6 +170,10 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
||||
}
|
||||
});
|
||||
|
||||
boolean debug = prefs.getBoolean("debug", false);
|
||||
swTcpKeepAlive.setVisibility(debug || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||
tvTcpKeepAliveHint.setVisibility(debug || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||
|
||||
swTcpKeepAlive.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
|
||||
Reference in New Issue
Block a user