Skip to content
Snippets Groups Projects
Verified Commit 1cf99348 authored by akwizgran's avatar akwizgran
Browse files

Avoid unnecessary reloads.

parent e810785f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment