mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Merge branch '1610-pending-contacts-offline-snackbar' into 'master'
Don't show offline snackbar when there's no pending contacts Closes #1610 See merge request briar/briar!1193
This commit is contained in:
@@ -91,7 +91,7 @@ public class PendingContactListViewModel extends AndroidViewModel
|
|||||||
Collection<Pair<PendingContact, PendingContactState>> pairs =
|
Collection<Pair<PendingContact, PendingContactState>> pairs =
|
||||||
contactManager.getPendingContacts();
|
contactManager.getPendingContacts();
|
||||||
List<PendingContactItem> items = new ArrayList<>(pairs.size());
|
List<PendingContactItem> items = new ArrayList<>(pairs.size());
|
||||||
boolean online = false;
|
boolean online = items.isEmpty();
|
||||||
for (Pair<PendingContact, PendingContactState> pair : pairs) {
|
for (Pair<PendingContact, PendingContactState> pair : pairs) {
|
||||||
PendingContact p = pair.getFirst();
|
PendingContact p = pair.getFirst();
|
||||||
PendingContactState state = pair.getSecond();
|
PendingContactState state = pair.getSecond();
|
||||||
|
|||||||
Reference in New Issue
Block a user