improved readability on BluetoothStateReceiver

and renamed `intent` to `intentFilter` to properly reflect type
This commit is contained in:
Ken Van Hoeylandt 2020-09-17 20:47:54 +02:00
parent b98a8ea34b
commit 8219ef42ed
3 changed files with 16 additions and 18 deletions

View file

@ -371,7 +371,7 @@ class MainActivity : AppCompatActivity(), Logging,
updateBluetoothEnabled()
/// We now want to be informed of bluetooth state
registerReceiver(btStateReceiver, btStateReceiver.intent)
registerReceiver(btStateReceiver, btStateReceiver.intentFilter)
// if (!isInTestLab) - very important - even in test lab we must request permissions because we need location perms for some of our tests to pass
requestPermission()