From 990c074856fd44a94364040d6d3deb2d00421fe4 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Wed, 26 Apr 2017 17:28:11 +0200 Subject: [PATCH] Fix last commit --- src/android/org/linphone/LinphoneManager.java | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/android/org/linphone/LinphoneManager.java b/src/android/org/linphone/LinphoneManager.java index 95eea9f33..b61d1745d 100644 --- a/src/android/org/linphone/LinphoneManager.java +++ b/src/android/org/linphone/LinphoneManager.java @@ -82,6 +82,7 @@ import org.linphone.core.LinphoneInfoMessage; import org.linphone.core.LinphoneProxyConfig; import org.linphone.core.OpenH264DownloadHelperListener; import org.linphone.core.PayloadType; +import org.linphone.core.PresenceBasicStatus; import org.linphone.core.PresenceActivityType; import org.linphone.core.PresenceModel; import org.linphone.core.PublishState; @@ -469,37 +470,6 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag } } - public void changeStatusToOnline() { - - LinphoneCore lc = getLcIfManagerNotDestroyedOrNull(); - if (isInstanciated() && lc != null && isPresenceModelActivitySet() && lc.getPresenceModel().getActivity().getType() != PresenceActivityType.Online) { - lc.getPresenceModel().getActivity().setType(PresenceActivityType.Online); - } else if (isInstanciated() && lc != null && !isPresenceModelActivitySet()) { - PresenceModel model = LinphoneCoreFactory.instance().createPresenceModel(PresenceActivityType.Online, null); - lc.setPresenceModel(model); - } - } - - public void changeStatusToOnThePhone() { - LinphoneCore lc = getLcIfManagerNotDestroyedOrNull(); - if (isInstanciated() && isPresenceModelActivitySet() && lc.getPresenceModel().getActivity().getType() != PresenceActivityType.OnThePhone) { - lc.getPresenceModel().getActivity().setType(PresenceActivityType.OnThePhone); - } else if (isInstanciated() && !isPresenceModelActivitySet()) { - PresenceModel model = LinphoneCoreFactory.instance().createPresenceModel(PresenceActivityType.OnThePhone, null); - lc.setPresenceModel(model); - } - } - - public void changeStatusToOffline() { - LinphoneCore lc = getLcIfManagerNotDestroyedOrNull(); - if (isInstanciated() && isPresenceModelActivitySet() && lc.getPresenceModel().getActivity().getType() != PresenceActivityType.Offline) { - lc.getPresenceModel().getActivity().setType(PresenceActivityType.Offline); - } else if (isInstanciated() && !isPresenceModelActivitySet()) { - PresenceModel model = LinphoneCoreFactory.instance().createPresenceModel(PresenceActivityType.Offline, null); - lc.setPresenceModel(model); - } - } - public void subscribeFriendList(boolean enabled){ LinphoneCore lc = getLcIfManagerNotDestroyedOrNull(); if(lc != null && lc.getFriendList() != null && lc.getFriendList().length > 0) {