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
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue