mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-16 20:00:40 +01:00
and catch & show error at another place
This commit is contained in:
parent
b19d02fd34
commit
1a0cddf322
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user