Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-10-29 14:39:58 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78b5249765b2af0f4a41937d2167603acfb7c1f1
78b52497
1 parent
fd67b8b7
fix typo in catch block
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerHandler.kt
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerHandler.kt
View file @
78b5249
...
...
@@ -238,7 +238,7 @@ class MobileScannerHandler(
try {
mobileScanner!!.toggleTorch(call.arguments == 1)
result.success(null)
} catch (e:
Already
Stopped) {
} catch (e:
TorchWhen
Stopped) {
result.error("MobileScanner", "Called toggleTorch() while stopped!", null)
}
}
...
...
Please
register
or
login
to post a comment