fix preview that disapear after rotation

This commit is contained in:
Simon Morlat 2011-09-23 21:37:51 +02:00
parent ccce719c6f
commit fb823df208
2 changed files with 5 additions and 3 deletions

View file

@ -227,6 +227,9 @@ public class VideoCallActivity extends SoftVolumeActivity {
@Override @Override
protected void onPause() { protected void onPause() {
Log.d("onPause VideoCallActivity"); Log.d("onPause VideoCallActivity");
LinphoneManager.getLc().setVideoWindow(null);
LinphoneManager.getLc().setPreviewWindow(null);
if (!isFinishing() && LinphoneManager.getLc().isIncall()) { if (!isFinishing() && LinphoneManager.getLc().isIncall()) {
// we're getting paused for real // we're getting paused for real
if (getChangingConfigurations() == 0) { if (getChangingConfigurations() == 0) {
@ -236,8 +239,7 @@ public class VideoCallActivity extends SoftVolumeActivity {
LinphoneManager.getLc().updateCall(LinphoneManager.getLc().getCurrentCall(), null); LinphoneManager.getLc().updateCall(LinphoneManager.getLc().getCurrentCall(), null);
} }
} }
LinphoneManager.getLc().setVideoWindow(null);
LinphoneManager.getLc().setPreviewWindow(null);
if (mWakeLock.isHeld()) mWakeLock.release(); if (mWakeLock.isHeld()) mWakeLock.release();
super.onPause(); super.onPause();

@ -1 +1 @@
Subproject commit 33c884f493d473a1373a7d219ecfd07db60e50cc Subproject commit 5fc7a0685ba488accd2eca977459202f522f806f