1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Small fix

This commit is contained in:
M66B 2019-03-04 09:05:19 +00:00
parent 8470366d32
commit 68a7abed74

View file

@ -194,8 +194,10 @@ public class FragmentIdentity extends FragmentBase {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {
grpAuthorize.setVisibility(position > 0 ? View.VISIBLE : View.GONE);
if (position == 0)
if (position == 0) {
tvError.setVisibility(View.GONE);
grpAdvanced.setVisibility(View.GONE);
}
tilPassword.setPasswordVisibilityToggleEnabled(position == 0);
Integer tag = (Integer) adapterView.getTag();
@ -401,8 +403,10 @@ public class FragmentIdentity extends FragmentBase {
btnAutoConfig.setEnabled(false);
cbInsecure.setVisibility(View.GONE);
tilPassword.setPasswordVisibilityToggleEnabled(id < 0);
btnSave.setVisibility(View.GONE);
btnAdvanced.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE);
pbSave.setVisibility(View.GONE);
tvError.setVisibility(View.GONE);