Skip to content

Commit 1a0cddf

Browse files
committed
and catch & show error at another place
1 parent b19d02f commit 1a0cddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ internal class MarshmallowCamera constructor(val context: Context) {
1717
init {
1818
try {
1919
cameraId = manager.cameraIdList[0] ?: "0"
20-
} catch (ignored: Exception) {
20+
} catch (e: Exception) {
21+
context.showErrorToast(e)
2122
}
2223
}
2324

0 commit comments

Comments
 (0)