|
|
@ -316,8 +316,9 @@ public class FragmentIdentity extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
|
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
|
|
if (TextUtils.isEmpty(s))
|
|
|
|
// https://github.com/material-components/material-components-android/issues/503
|
|
|
|
tilPassword.setEndIconMode(END_ICON_PASSWORD_TOGGLE);
|
|
|
|
//if (TextUtils.isEmpty(s))
|
|
|
|
|
|
|
|
// tilPassword.setEndIconMode(END_ICON_PASSWORD_TOGGLE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -511,7 +512,7 @@ public class FragmentIdentity extends FragmentBase {
|
|
|
|
btnAutoConfig.setEnabled(false);
|
|
|
|
btnAutoConfig.setEnabled(false);
|
|
|
|
pbAutoConfig.setVisibility(View.GONE);
|
|
|
|
pbAutoConfig.setVisibility(View.GONE);
|
|
|
|
cbInsecure.setVisibility(View.GONE);
|
|
|
|
cbInsecure.setVisibility(View.GONE);
|
|
|
|
tilPassword.setEndIconMode(Helper.isSecure(getContext()) ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
|
|
|
|
tilPassword.setEndIconMode(id < 0 || Helper.isSecure(getContext()) ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
|
|
|
|
|
|
|
|
|
|
|
|
btnAdvanced.setVisibility(View.GONE);
|
|
|
|
btnAdvanced.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
|
@ -539,7 +540,7 @@ public class FragmentIdentity extends FragmentBase {
|
|
|
|
etEmail.setText(account.user);
|
|
|
|
etEmail.setText(account.user);
|
|
|
|
etUser.setText(account.user);
|
|
|
|
etUser.setText(account.user);
|
|
|
|
tilPassword.getEditText().setText(account.password);
|
|
|
|
tilPassword.getEditText().setText(account.password);
|
|
|
|
tilPassword.setEndIconMode(Helper.isSecure(getContext()) ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
|
|
|
|
//tilPassword.setEndIconMode(Helper.isSecure(getContext()) ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
|
|
|
|
certificate = account.certificate_alias;
|
|
|
|
certificate = account.certificate_alias;
|
|
|
|
tvCertificate.setText(certificate == null ? getString(R.string.title_optional) : certificate);
|
|
|
|
tvCertificate.setText(certificate == null ? getString(R.string.title_optional) : certificate);
|
|
|
|
etRealm.setText(account.realm);
|
|
|
|
etRealm.setText(account.realm);
|
|
|
|