From 7f76d50e418b8dbb2ae4471bee6cd3e6ab2ea0e8 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Fri, 4 Nov 2016 10:15:56 +0100 Subject: [PATCH] Asking phone number link after upgrade --- src/org/linphone/LinphoneManager.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/org/linphone/LinphoneManager.java b/src/org/linphone/LinphoneManager.java index 852c738a5..d3811866f 100644 --- a/src/org/linphone/LinphoneManager.java +++ b/src/org/linphone/LinphoneManager.java @@ -1637,7 +1637,11 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag public void onAccountCreatorAccountActivated(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) {} @Override - public void onAccountCreatorAccountLinkedWithPhoneNumber(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) {} + public void onAccountCreatorAccountLinkedWithPhoneNumber(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) { + if (status.equals(LinphoneAccountCreator.Status.AccountNotLinked)) { + askLinkWithPhoneNumber(); + } + } @Override public void onAccountCreatorPhoneNumberLinkActivated(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) {} @@ -1649,13 +1653,8 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag public void onAccountCreatorPhoneAccountRecovered(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) {} @Override - public void onAccountCreatorIsAccountLinked(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) { - if (status.equals(LinphoneAccountCreator.Status.AccountNotLinked)) { - askLinkWithPhoneNumber(); - } - } + public void onAccountCreatorIsAccountLinked(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) {} @Override - public void onAccountCreatorIsPhoneNumberUsed(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) { - } + public void onAccountCreatorIsPhoneNumberUsed(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.Status status) {} }