Skip to content

Commit

Permalink
WIP for universal connection status
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ker committed Sep 12, 2024
1 parent e7901f3 commit ac3baa6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId = "com.hoker.intra_example"
minSdk = 28
targetSdk = 35
versionCode = 128
versionName = "1.2.8"
versionCode = 129
versionName = "1.2.9"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
2 changes: 1 addition & 1 deletion intra/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ afterEvaluate {
from(components["release"])
groupId = "com.github.CarbideCowboy"
artifactId = "Intra"
version = "1.2.8"
version = "1.2.9"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ open class NfcAdapterController @Inject constructor(
activity,
{ tag ->
_connectionState.value = true
onTagDiscoveredListener?.invoke(tag)
_connectionState.value = false
try {
onTagDiscoveredListener?.invoke(tag)
} finally {
_connectionState.value = false
}
},
flags,
options
Expand Down

0 comments on commit ac3baa6

Please sign in to comment.