mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-16 19:30:40 +01:00
properly apply zoom, do not delay it
This commit is contained in:
parent
df500e2da4
commit
c5f3d312d3
@ -259,11 +259,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
|||||||
newZoomFactor = Math.max(newZoomFactor, 0)
|
newZoomFactor = Math.max(newZoomFactor, 0)
|
||||||
newZoomFactor = Math.min(mMaxZoom, newZoomFactor)
|
newZoomFactor = Math.min(mMaxZoom, newZoomFactor)
|
||||||
|
|
||||||
try {
|
mParameters!!.zoom = newZoomFactor
|
||||||
mParameters!!.zoom = newZoomFactor
|
mCamera?.parameters = mParameters
|
||||||
} catch (ignored: Exception) {
|
|
||||||
mCamera?.parameters = mParameters
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user