mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-15 00:06:33 +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.min(mMaxZoom, newZoomFactor)
|
||||
|
||||
try {
|
||||
mParameters!!.zoom = newZoomFactor
|
||||
} catch (ignored: Exception) {
|
||||
mCamera?.parameters = mParameters
|
||||
}
|
||||
mParameters!!.zoom = newZoomFactor
|
||||
mCamera?.parameters = mParameters
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user