Fix videoactivity not killed when call released

This commit is contained in:
Sylvain Berfini 2012-05-24 16:05:39 +02:00
parent 2449dc8635
commit b0ba6158e4

View file

@ -340,6 +340,9 @@ public class VideoCallActivity extends Activity implements
@Override @Override
protected void onResume() { protected void onResume() {
if (!LinphoneManager.getLc().isIncall())
finish();
super.onResume(); super.onResume();
if (mVideoViewReady != null) if (mVideoViewReady != null)
((GLSurfaceView) mVideoViewReady).onResume(); ((GLSurfaceView) mVideoViewReady).onResume();