mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
6117036450
commit
3ec437fdbb
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue