Small improvement

This commit is contained in:
M66B 2022-04-19 14:51:42 +02:00
parent 6117036450
commit 3ec437fdbb
1 changed files with 4 additions and 3 deletions

View File

@ -1278,11 +1278,13 @@ public class FragmentCompose extends FragmentBase {
} }
private void selectIdentityForEmail(String email) { private void selectIdentityForEmail(String email) {
if (!identity_selectable)
return;
if (TextUtils.isEmpty(email)) if (TextUtils.isEmpty(email))
return; return;
if (!identity_selectable)
return;
identity_selectable = false;
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putString("email", email); args.putString("email", email);
@ -1322,7 +1324,6 @@ public class FragmentCompose extends FragmentBase {
EntityIdentity item = (EntityIdentity) adapter.getItem(pos); EntityIdentity item = (EntityIdentity) adapter.getItem(pos);
if (item.id.equals(identity)) { if (item.id.equals(identity)) {
spIdentity.setSelection(pos); spIdentity.setSelection(pos);
identity_selectable = false;
break; break;
} }
} }