From 16d112430f9d9838a026a9de1f1130541ed16283 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 22 Sep 2011 15:12:56 +0200 Subject: [PATCH] Enable/disable video according to user settings --- 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 c2cc060ff..b57bcdb54 100644 --- a/src/org/linphone/VideoCallActivity.java +++ b/src/org/linphone/VideoCallActivity.java @@ -96,8 +96,8 @@ public class VideoCallActivity extends SoftVolumeActivity { // Before creating the graph, the orientation must be known to LC => this is done here LinphoneManager.getLc().setDeviceRotation(AndroidVideoWindowImpl.rotationToAngle(getWindowManager().getDefaultDisplay().getOrientation())); - if (!LinphoneManager.getInstance().shareMyCamera()) - LinphoneManager.getInstance().sendStaticImage(false); + LinphoneManager.getInstance().sendStaticImage(!LinphoneManager.getInstance().shareMyCamera()); + PowerManager pm = (PowerManager)getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK|PowerManager.ON_AFTER_RELEASE,Log.TAG); mWakeLock.acquire(); @@ -158,6 +158,7 @@ public class VideoCallActivity extends SoftVolumeActivity { case R.id.videocall_menu_change_resolution: LinphoneManager.getInstance().changeResolution(); // previous call will cause graph reconstruction -> regive preview window + LinphoneManager.getLc().setPreviewWindow(mVideoCaptureView); rewriteChangeResolutionItem(item); break; case R.id.videocall_menu_terminate_call: