From 68a7abed747698fe24830e9a55006e44e6f7a292 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 4 Mar 2019 09:05:19 +0000 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 391fb4321d..d5878436a2 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -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);