Fix resume issue
This commit is contained in:
parent
fac7349c67
commit
cb08478146
1 changed files with 3 additions and 2 deletions
|
@ -309,7 +309,8 @@ public class DialerActivity extends Activity implements LinphoneGuiListener {
|
|||
}
|
||||
|
||||
mVideoCaptureViewReady.requestLayout();
|
||||
mCamera.startPreview();
|
||||
if (mCamera != null)
|
||||
mCamera.startPreview();
|
||||
}
|
||||
|
||||
});
|
||||
|
@ -488,7 +489,7 @@ public class DialerActivity extends Activity implements LinphoneGuiListener {
|
|||
|
||||
super.onResume();
|
||||
|
||||
if (mVideoCaptureViewReady != null && mCamera == null)
|
||||
if (mVideoCaptureViewReady != null && mCamera == null && !LinphoneManager.getLc().isIncall())
|
||||
{
|
||||
mCamera = Camera.open(mCurrentCameraId);
|
||||
mVideoCaptureViewReady.requestLayout();
|
||||
|
|
Loading…
Reference in a new issue