We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e446fb2 commit 6dd128bCopy full SHA for 6dd128b
1 file changed
app/src/main/java/io/github/sds100/keymapper/system/camera/AndroidCameraAdapter.kt
@@ -152,6 +152,11 @@ class AndroidCameraAdapter(context: Context) : CameraAdapter {
152
return Error.SdkVersionTooLow(minSdk = Build.VERSION_CODES.TIRAMISU)
153
}
154
155
+ // If the flash is disabled and it should be decreased then do nothing.
156
+ if (percent < 0 && isFlashEnabledMap.value[lens] == false) {
157
+ return Success(Unit)
158
+ }
159
+
160
try {
161
val cameraId = getFlashlightCameraIdForLens(lens)
162
0 commit comments