fix: Fix Preview stretching on Android (#2377)

* fix: Fix Preview stretching on Android

* fix: Simplify Preview size computation

* fix: Catch `stopRepeating` error

* fix: Fix preview size calculation

* Format code

* Update CameraSession.kt

* Enable CodeScanner in example app

* fix: Also update size on surface change

* Format

* fix: Flip sizes

* Revert that stuff again

* Update PreviewView.kt

* fix: Swap width and height in SurfaceHolder::setFixedSize
This commit is contained in:
Marc Rousavy
2024-01-11 16:33:40 +01:00
committed by GitHub
parent 2b10622559
commit 322b6fcbd6
6 changed files with 20 additions and 48 deletions

View File

@@ -42,4 +42,4 @@ hermesEnabled=true
# Can be set to true to disable the build setup
#VisionCamera_disableFrameProcessors=true
# Can be set to true to include the full 2.4 MB MLKit dependency
#VisionCamera_enableCodeScanner=true
VisionCamera_enableCodeScanner=true