mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Avoid unnecessary reloads.
This commit is contained in:
@@ -56,7 +56,7 @@ public class AddContactViewModel extends AndroidViewModel {
|
||||
}
|
||||
|
||||
void onCreate() {
|
||||
loadHandshakeLink();
|
||||
if (handshakeLink.getValue() == null) loadHandshakeLink();
|
||||
}
|
||||
|
||||
private void loadHandshakeLink() {
|
||||
|
||||
@@ -64,7 +64,7 @@ public class PendingContactListViewModel extends AndroidViewModel
|
||||
}
|
||||
|
||||
void onCreate() {
|
||||
loadPendingContacts();
|
||||
if (pendingContacts.getValue() == null) loadPendingContacts();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user