Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -238,7 +238,7 @@ class MobileScannerHandler( | @@ -238,7 +238,7 @@ class MobileScannerHandler( | ||
| 238 | try { | 238 | try { |
| 239 | mobileScanner!!.toggleTorch(call.arguments == 1) | 239 | mobileScanner!!.toggleTorch(call.arguments == 1) |
| 240 | result.success(null) | 240 | result.success(null) |
| 241 | - } catch (e: AlreadyStopped) { | 241 | + } catch (e: TorchWhenStopped) { |
| 242 | result.error("MobileScanner", "Called toggleTorch() while stopped!", null) | 242 | result.error("MobileScanner", "Called toggleTorch() while stopped!", null) |
| 243 | } | 243 | } |
| 244 | } | 244 | } |
-
Please register or login to post a comment