mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-05-28 17:54:30 +02: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 {
|
init {
|
||||||
try {
|
try {
|
||||||
cameraId = manager.cameraIdList[0] ?: "0"
|
cameraId = manager.cameraIdList[0] ?: "0"
|
||||||
} catch (ignored: Exception) {
|
} catch (e: Exception) {
|
||||||
|
context.showErrorToast(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user