|
|
|
@ -147,6 +147,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private SwitchCompat swAuthLogin;
|
|
|
|
|
private SwitchCompat swAuthNtlm;
|
|
|
|
|
private SwitchCompat swAuthSasl;
|
|
|
|
|
private SwitchCompat swKeepAlivePoll;
|
|
|
|
|
private SwitchCompat swEmptyPool;
|
|
|
|
|
private SwitchCompat swIdleDone;
|
|
|
|
|
private SwitchCompat swExactAlarms;
|
|
|
|
@ -183,7 +184,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"protocol", "debug", "log_level",
|
|
|
|
|
"query_threads", "wal", "checkpoints", "sqlite_cache",
|
|
|
|
|
"chunk_size", "use_modseq", "perform_expunge", "uid_expunge",
|
|
|
|
|
"auth_plain", "auth_login", "auth_ntlm", "auth_sasl", "empty_pool", "idle_done",
|
|
|
|
|
"auth_plain", "auth_login", "auth_ntlm", "auth_sasl",
|
|
|
|
|
"keep_alive_poll", "empty_pool", "idle_done",
|
|
|
|
|
"exact_alarms", "infra", "dup_msgids", "test_iab"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -282,6 +284,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swAuthLogin = view.findViewById(R.id.swAuthLogin);
|
|
|
|
|
swAuthNtlm = view.findViewById(R.id.swAuthNtlm);
|
|
|
|
|
swAuthSasl = view.findViewById(R.id.swAuthSasl);
|
|
|
|
|
swKeepAlivePoll = view.findViewById(R.id.swKeepAlivePoll);
|
|
|
|
|
swEmptyPool = view.findViewById(R.id.swEmptyPool);
|
|
|
|
|
swIdleDone = view.findViewById(R.id.swIdleDone);
|
|
|
|
|
swExactAlarms = view.findViewById(R.id.swExactAlarms);
|
|
|
|
@ -884,6 +887,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swKeepAlivePoll.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("keep_alive_poll", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swEmptyPool.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -1379,6 +1389,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swAuthLogin.setChecked(prefs.getBoolean("auth_login", true));
|
|
|
|
|
swAuthNtlm.setChecked(prefs.getBoolean("auth_ntlm", true));
|
|
|
|
|
swAuthSasl.setChecked(prefs.getBoolean("auth_sasl", true));
|
|
|
|
|
swKeepAlivePoll.setChecked(prefs.getBoolean("keep_alive_poll", false));
|
|
|
|
|
swEmptyPool.setChecked(prefs.getBoolean("empty_pool", true));
|
|
|
|
|
swIdleDone.setChecked(prefs.getBoolean("idle_done", true));
|
|
|
|
|
swExactAlarms.setChecked(prefs.getBoolean("exact_alarms", true));
|
|
|
|
|