Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andy B-S
Companion App Android
Commits
df2f98ea
Commit
df2f98ea
authored
Aug 23, 2019
by
Anon
Browse files
ConnectionService: Fix duplicate callbacks.
parent
beb5b224
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/de/ccc/events/badge/card10/common/ConnectionService.kt
View file @
df2f98ea
...
...
@@ -65,6 +65,11 @@ object ConnectionService {
}
fun
connect
(
context
:
Context
)
{
if
(
isConnected
())
{
gattListeners
.
values
.
map
{
it
.
onConnectionReady
()
}
return
}
// Use first BLE devices that is bonded
val
bondedDevices
=
BluetoothAdapter
.
getDefaultAdapter
().
bondedDevices
.
filter
{
it
.
address
.
startsWith
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment