|
|
|
@ -88,6 +88,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
private EditText etHost;
|
|
|
|
|
private RadioGroup rgEncryption;
|
|
|
|
|
private CheckBox cbInsecure;
|
|
|
|
|
private TextView tvInsecureRemark;
|
|
|
|
|
private EditText etPort;
|
|
|
|
|
private EditText etUser;
|
|
|
|
|
private TextInputLayout tilPassword;
|
|
|
|
@ -194,6 +195,7 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
etPort = view.findViewById(R.id.etPort);
|
|
|
|
|
rgEncryption = view.findViewById(R.id.rgEncryption);
|
|
|
|
|
cbInsecure = view.findViewById(R.id.cbInsecure);
|
|
|
|
|
tvInsecureRemark = view.findViewById(R.id.tvInsecureRemark);
|
|
|
|
|
etUser = view.findViewById(R.id.etUser);
|
|
|
|
|
tilPassword = view.findViewById(R.id.tilPassword);
|
|
|
|
|
tvCharacters = view.findViewById(R.id.tvCharacters);
|
|
|
|
@ -318,6 +320,13 @@ public class FragmentAccount extends FragmentBase {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
tvInsecureRemark.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
|
Helper.viewFAQ(v.getContext(), 4);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
tilPassword.getEditText().addTextChangedListener(new TextWatcher() {
|
|
|
|
|
@Override
|
|
|
|
|
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
|
|
|
|