From a8c0162086d405bcb598d8465de1769f92c85f59 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 12 Oct 2011 15:30:24 +0200 Subject: [PATCH] Disable camera when pressing 'back' button while in video call --- src/org/linphone/VideoCallActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/VideoCallActivity.java b/src/org/linphone/VideoCallActivity.java index 0a6487e09..672ca7559 100755 --- a/src/org/linphone/VideoCallActivity.java +++ b/src/org/linphone/VideoCallActivity.java @@ -272,7 +272,8 @@ public class VideoCallActivity extends SoftVolumeActivity { @Override protected void onPause() { - Log.d("onPause VideoCallActivity"); + Log.d("onPause VideoCallActivity (isFinishing:", isFinishing(), ", inCall:", LinphoneManager.getLc().isIncall(), ", changingConf:", getChangingConfigurations()); + launched=false; synchronized (androidVideoWindowImpl) { /* this call will destroy native opengl renderer @@ -283,7 +284,7 @@ public class VideoCallActivity extends SoftVolumeActivity { LinphoneManager.getLc().setPreviewWindow(null); - if (!isFinishing() && LinphoneManager.getLc().isIncall()) { + if (LinphoneManager.getLc().isIncall()) { // we're getting paused for real if (getChangingConfigurations() == 0) { LinphoneManager.getInstance().sendStaticImage(true);