mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
[android] don't show offline snackbar when there's no pending contacts
If the pending contact list is opened concurrently with the last pending contact being removed (unlikely but possible) then the "no internet connection" snackbar would be shown even though the app is connected to Tor.
This commit is contained in:
@@ -91,7 +91,7 @@ public class PendingContactListViewModel extends AndroidViewModel
|
||||
Collection<Pair<PendingContact, PendingContactState>> pairs =
|
||||
contactManager.getPendingContacts();
|
||||
List<PendingContactItem> items = new ArrayList<>(pairs.size());
|
||||
boolean online = false;
|
||||
boolean online = items.isEmpty();
|
||||
for (Pair<PendingContact, PendingContactState> pair : pairs) {
|
||||
PendingContact p = pair.getFirst();
|
||||
PendingContactState state = pair.getSecond();
|
||||
|
||||
Reference in New Issue
Block a user