Commit 157b64e6 authored by Torsten Grote's avatar Torsten Grote

Merge branch 'pending-contacts-crash' into 'master'

Don't call setValue() on a background thread

See merge request !1123
parents a650d812 bf39c30d
Pipeline #3458 passed with stage
in 7 minutes and 34 seconds
...@@ -82,7 +82,7 @@ public class PendingContactListViewModel extends AndroidViewModel ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment