Skip to content

Commit a1e9874

Browse files
author
farfromrefug
committed
fix(android): takePicture fix for flashMode
1 parent 3cebd08 commit a1e9874

File tree

1 file changed

+1
-1
lines changed
  • packages/ui-cameraview/platforms/android/java/com/nativescript/cameraview

1 file changed

+1
-1
lines changed

packages/ui-cameraview/platforms/android/java/com/nativescript/cameraview/CameraView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
695695
options.getInt("targetRotation")
696696
else currentRotation
697697
flashMode =
698-
if (options?.has("flashMode") == true) options.getInt("flashMode")
698+
if (options?.has("flashMode") == true) CameraFlashMode.from(options.getInt("flashMode"))
699699
else getFlashMode()
700700
}
701701
return

0 commit comments

Comments
 (0)