Skip to content

Commit

Permalink
fix: Correct android filenames for takeSnapshot [v4] (#2812)
Browse files Browse the repository at this point in the history
fix: add dot to snapshot filename
  • Loading branch information
utk994-swig committed Apr 29, 2024
1 parent 0e5a888 commit bfc5e35
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -18,7 +18,7 @@ fun CameraView.takeSnapshot(options: SnapshotOptions): WritableMap {

onShutter(ShutterType.SNAPSHOT)

val file = FileUtils.createTempFile(context, "jpg")
val file = FileUtils.createTempFile(context, ".jpg")
FileUtils.writeBitmapTofile(bitmap, file, options.quality)

Log.i(TAG, "Successfully saved snapshot to file!")
Expand Down

0 comments on commit bfc5e35

Please sign in to comment.