Disable camera when pressing 'back' button while in video call

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2011-10-12 15:30:24 +02:00
parent a01a2c982a
commit a8c0162086

View file

@ -272,7 +272,8 @@ public class VideoCallActivity extends SoftVolumeActivity {
@Override @Override
protected void onPause() { protected void onPause() {
Log.d("onPause VideoCallActivity"); Log.d("onPause VideoCallActivity (isFinishing:", isFinishing(), ", inCall:", LinphoneManager.getLc().isIncall(), ", changingConf:", getChangingConfigurations());
launched=false; launched=false;
synchronized (androidVideoWindowImpl) { synchronized (androidVideoWindowImpl) {
/* this call will destroy native opengl renderer /* this call will destroy native opengl renderer
@ -283,7 +284,7 @@ public class VideoCallActivity extends SoftVolumeActivity {
LinphoneManager.getLc().setPreviewWindow(null); LinphoneManager.getLc().setPreviewWindow(null);
if (!isFinishing() && LinphoneManager.getLc().isIncall()) { if (LinphoneManager.getLc().isIncall()) {
// we're getting paused for real // we're getting paused for real
if (getChangingConfigurations() == 0) { if (getChangingConfigurations() == 0) {
LinphoneManager.getInstance().sendStaticImage(true); LinphoneManager.getInstance().sendStaticImage(true);