We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba1a950 commit 4e88691Copy full SHA for 4e88691
1 file changed
Acx.Forms.Barcode.Droid/Camera/CameraConfigurator.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using Android.Graphics;
@@ -270,6 +270,9 @@ private string determineWhiteBalance(AndroidCamera.Parameters parameters)
270
/// </summary>
271
private string determineFlashMode(AndroidCamera.Parameters p, bool state)
272
{
273
+ if (p.SupportedFlashModes == null)
274
+ return string.Empty;
275
+
276
if (state && p.SupportedFlashModes.Contains(AndroidCamera.Parameters.FlashModeTorch)) {
277
return AndroidCamera.Parameters.FlashModeTorch;
278
}
0 commit comments