Don't call setValue() on a background thread.

This commit is contained in:
akwizgran
2019-06-05 16:23:17 +01:00
parent a650d812fa
commit bf39c30d24

View File

@@ -82,7 +82,7 @@ public class PendingContactListViewModel extends AndroidViewModel
items.add(new PendingContactItem(p.getFirst(), items.add(new PendingContactItem(p.getFirst(),
p.getSecond())); p.getSecond()));
} }
pendingContacts.setValue(items); pendingContacts.postValue(items);
} catch (DbException e) { } catch (DbException e) {
logException(LOG, WARNING, e); logException(LOG, WARNING, e);
} }