From 0f3061c928825b4caab6429330104288fc34a163 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 1 Jul 2019 15:12:59 +0200 Subject: [PATCH] Added missing synchronized --- app/src/main/java/org/linphone/contacts/LinphoneContact.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/linphone/contacts/LinphoneContact.java b/app/src/main/java/org/linphone/contacts/LinphoneContact.java index e04dacb51..f8df43ad5 100644 --- a/app/src/main/java/org/linphone/contacts/LinphoneContact.java +++ b/app/src/main/java/org/linphone/contacts/LinphoneContact.java @@ -321,7 +321,7 @@ public class LinphoneContact extends AndroidContact return mFriend; } - private void createOrUpdateFriend() { + private synchronized void createOrUpdateFriend() { boolean created = false; Core core = LinphoneManager.getCore(); if (core == null) return; @@ -563,7 +563,7 @@ public class LinphoneContact extends AndroidContact } } - public void updateNativeContactWithPresenceInfo() { + public synchronized void updateNativeContactWithPresenceInfo() { Log.d("[Contact] Trying to update native contact with presence information"); // Creation of the raw contact with the presence information (tablet) createRawLinphoneContactFromExistingAndroidContactIfNeeded();