properly apply zoom, do not delay it

This commit is contained in:
tibbi 2018-01-23 17:02:41 +01:00
parent df500e2da4
commit c5f3d312d3
1 changed files with 2 additions and 5 deletions

View File

@ -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
}