and catch & show error at another place

This commit is contained in:
tibbi 2022-02-12 10:23:56 +01:00
parent b19d02fd34
commit 1a0cddf322

View File

@ -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)
}
}