Fix last commit
This commit is contained in:
parent
5cb1f0dc1a
commit
990c074856
1 changed files with 1 additions and 31 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue