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