|
|
@ -601,8 +601,8 @@ public class CameraView extends FrameLayout implements LifecycleObserver { |
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME) |
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME) |
|
|
|
public void open() { |
|
|
|
public void open() { |
|
|
|
if (!isEnabled()) return; |
|
|
|
if (!isEnabled()) return; |
|
|
|
if (mCameraPreview != null) mCameraPreview.onResume(); |
|
|
|
if (mCameraPreview == null) return; // Don't want to start without a preview
|
|
|
|
|
|
|
|
mCameraPreview.onResume(); |
|
|
|
if (checkPermissions(getAudio())) { |
|
|
|
if (checkPermissions(getAudio())) { |
|
|
|
// Update display orientation for current CameraController
|
|
|
|
// Update display orientation for current CameraController
|
|
|
|
mOrientationHelper.enable(getContext()); |
|
|
|
mOrientationHelper.enable(getContext()); |
|
|
|