diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt index 6001a29..1ab3d2e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt @@ -17,7 +17,8 @@ internal class MarshmallowCamera constructor(val context: Context) { init { try { cameraId = manager.cameraIdList[0] ?: "0" - } catch (ignored: Exception) { + } catch (e: Exception) { + context.showErrorToast(e) } }