Auto select STARTTLS on checking insecure

This commit is contained in:
M66B
2020-05-31 12:46:40 +02:00
parent c2d6b8576c
commit 53d8eb0886

View File

@@ -330,6 +330,14 @@ public class FragmentAccount extends FragmentBase {
}
});
cbInsecure.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked)
rgEncryption.check(R.id.radio_starttls);
}
});
tilPassword.getEditText().addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {