Skip to content
Snippets Groups Projects
Commit a280b6c1 authored by schneider's avatar schneider
Browse files

Merge branch 'schneider/check-pairing' into 'master'

Card10BackgroundService: Check pairing when coming back from pairing dialog

See merge request !41
parents ed6d3461 156cff9d
Branches
No related tags found
1 merge request!41Card10BackgroundService: Check pairing when coming back from pairing dialog
Pipeline #5380 passed
...@@ -97,7 +97,8 @@ class Card10BackgroundService : Service(), GattListener { ...@@ -97,7 +97,8 @@ class Card10BackgroundService : Service(), GattListener {
if(! BluetoothAdapter.getDefaultAdapter().isEnabled) { if(! BluetoothAdapter.getDefaultAdapter().isEnabled) {
deactivate() deactivate()
state = ConnectionState.NO_BLUETOOTH state = ConnectionState.NO_BLUETOOTH
} else if (state == ConnectionState.NO_BLUETOOTH) { } else if (state == ConnectionState.NO_BLUETOOTH || state == ConnectionState.NOT_CONNECTED || state == ConnectionState.NOT_PAIRED) {
// Maybe just an else would also be good enough...
checkPairing() checkPairing()
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment