Conference's pause/resume issue fixed

This commit is contained in:
Sylvain Berfini 2011-10-14 17:35:34 +02:00
parent efcb45d7c7
commit c0e7a34ca1

View file

@ -23,6 +23,7 @@ import java.io.IOException;
import org.linphone.LinphoneManager.LinphoneServiceListener;
import org.linphone.LinphoneManager.NewOutgoingCallUiListener;
import org.linphone.core.LinphoneCall;
import org.linphone.core.LinphoneCoreFactoryImpl;
import org.linphone.core.Log;
import org.linphone.core.OnlineStatus;
import org.linphone.core.LinphoneCall.State;
@ -258,6 +259,15 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
// and a race condition with capture surfaceview leading to a crash
LinphoneActivity.instance().startVideoActivity();
}
else if (VideoCallActivity.launched && LinphoneActivity.isInstanciated()
&& !call.getCurrentParamsCopy().getVideoEnabled()) {
LinphoneActivity.instance().finishVideoActivity();
}
} else if (state == LinphoneCall.State.CallUpdatedByRemote) {
if (VideoCallActivity.launched && LinphoneActivity.isInstanciated()
&& !call.getCurrentParamsCopy().getVideoEnabled()) {
LinphoneActivity.instance().finishVideoActivity();
}
}
mHandler.post(new Runnable() {