Skip to content

Commit

Permalink
Fix for devices without bluetooth like emulators
Browse files Browse the repository at this point in the history
  • Loading branch information
djordjeh committed Sep 30, 2024
1 parent 0144b22 commit 9f3e56b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scan-engine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ afterEvaluate {
create<MavenPublication>("scan-engine") {
groupId = "de.tillhub.scanengine"
artifactId = "scan-engine"
version = "1.5.6"
version = "1.5.7"

from(components.getByName("release"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ internal class ZebraBarcodeScanner(
}

fun initScanner(): Result<SDKHandler> {
val btEnabled = bluetoothManager.adapter.isEnabled
val btEnabled = bluetoothManager.adapter?.isEnabled ?: false
return if (hasPermissions() && btEnabled) {
registerReceiver(
context,
Expand Down

0 comments on commit 9f3e56b

Please sign in to comment.