Avoid unnecessary reloads.

parent e810785f
Pipeline #3518 passed with stage
in 8 minutes and 38 seconds
......@@ -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
......
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