Auto select STARTTLS on checking insecure

pull/180/head
M66B 4 years ago
parent c2d6b8576c
commit 53d8eb0886

@ -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() { tilPassword.getEditText().addTextChangedListener(new TextWatcher() {
@Override @Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) { public void beforeTextChanged(CharSequence s, int start, int count, int after) {

Loading…
Cancel
Save