Account for orientation in PreviewView

This commit is contained in:
2024-07-28 20:09:59 -06:00
parent 7c162fecb1
commit 0329e7976d
4 changed files with 22 additions and 4 deletions

View File

@@ -72,6 +72,10 @@ class CameraView(context: Context) :
var zoom: Float = 1f // in "factor"
var exposure: Double = 1.0
var orientation: Orientation = Orientation.PORTRAIT
set(value) {
field = value
previewView.orientation = value
}
var enableZoomGesture = false
set(value) {
field = value