mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Fixes
This commit is contained in:
@@ -1376,10 +1376,9 @@ public class FragmentCompose extends FragmentEx {
|
||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||
EntityAccount account = (EntityAccount) parent.getAdapter().getItem(position);
|
||||
|
||||
if (liveIdentities == null)
|
||||
liveIdentities = db.identity().liveIdentities(account.id, true);
|
||||
else
|
||||
if (liveIdentities != null)
|
||||
liveIdentities.removeObservers(getViewLifecycleOwner());
|
||||
liveIdentities = db.identity().liveIdentities(account.id, true);
|
||||
|
||||
liveIdentities.observe(getViewLifecycleOwner(), new Observer<List<EntityIdentity>>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user