mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-05 19:21:05 +02:00
fix #130, make sure the preview is zoomed out at camera init
This commit is contained in:
parent
e2ae2caf11
commit
43b399d552
@ -165,10 +165,12 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
|||||||
}
|
}
|
||||||
|
|
||||||
val focusModes = mParameters!!.supportedFocusModes
|
val focusModes = mParameters!!.supportedFocusModes
|
||||||
if (focusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE))
|
if (focusModes.contains(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE)) {
|
||||||
mParameters!!.focusMode = Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE
|
mParameters!!.focusMode = Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE
|
||||||
|
}
|
||||||
|
|
||||||
mCamera!!.setDisplayOrientation(mActivity!!.getPreviewRotation(mCurrCameraId))
|
mCamera!!.setDisplayOrientation(mActivity!!.getPreviewRotation(mCurrCameraId))
|
||||||
|
mParameters!!.zoom = 0
|
||||||
updateCameraParameters()
|
updateCameraParameters()
|
||||||
|
|
||||||
if (mCanTakePicture) {
|
if (mCanTakePicture) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user