react-native-vision-camera/android/src/main
Menardi fe01295226
fix: Fix Android focus not using correct focus point (#958)
This commit fixes #758. I was having the same issue and looked into it a bit. I found
[this StackOverflow answer](https://stackoverflow.com/a/60585382) which described a
solution to the same problem. Rather than manually calculate the focus point, we can
get the PreviewView to do it for us. This fixes the issue because the PreviewView
factors in any scaling or resizing of the view on the screen, which we weren't doing
before. The only potential issue is that this needs to run on the UI thread
(which is what the `withContext` is doing), but I've tested it with frame processors
enabled and disabled, and have found no issues in either case.
2022-03-31 18:01:21 +02:00
..
cpp fix: Log Stacktrace on Frame Processor Error (#731) 2022-01-10 16:37:47 +01:00
java/com/mrousavy/camera fix: Fix Android focus not using correct focus point (#958) 2022-03-31 18:01:21 +02:00
AndroidManifest.xml update android lib name 2021-02-19 20:48:35 +01:00