fix preview that disapear after rotation
This commit is contained in:
parent
ccce719c6f
commit
fb823df208
2 changed files with 5 additions and 3 deletions
|
@ -227,6 +227,9 @@ public class VideoCallActivity extends SoftVolumeActivity {
|
|||
@Override
|
||||
protected void onPause() {
|
||||
Log.d("onPause VideoCallActivity");
|
||||
LinphoneManager.getLc().setVideoWindow(null);
|
||||
LinphoneManager.getLc().setPreviewWindow(null);
|
||||
|
||||
if (!isFinishing() && LinphoneManager.getLc().isIncall()) {
|
||||
// we're getting paused for real
|
||||
if (getChangingConfigurations() == 0) {
|
||||
|
@ -236,8 +239,7 @@ public class VideoCallActivity extends SoftVolumeActivity {
|
|||
LinphoneManager.getLc().updateCall(LinphoneManager.getLc().getCurrentCall(), null);
|
||||
}
|
||||
}
|
||||
LinphoneManager.getLc().setVideoWindow(null);
|
||||
LinphoneManager.getLc().setPreviewWindow(null);
|
||||
|
||||
|
||||
if (mWakeLock.isHeld()) mWakeLock.release();
|
||||
super.onPause();
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 33c884f493d473a1373a7d219ecfd07db60e50cc
|
||||
Subproject commit 5fc7a0685ba488accd2eca977459202f522f806f
|
Loading…
Reference in a new issue