mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: update CompanionDeviceManager associate() to Activity context
This commit is contained in:
parent
4e9ec5f096
commit
2d0d7b3986
3 changed files with 26 additions and 25 deletions
|
|
@ -61,7 +61,9 @@ class BluetoothRepository @Inject constructor(
|
|||
}
|
||||
|
||||
fun getBluetoothLeScanner(): BluetoothLeScanner? {
|
||||
return bluetoothAdapterLazy.get()?.bluetoothLeScanner
|
||||
return bluetoothAdapterLazy.get()
|
||||
?.takeIf { application.hasBluetoothPermission() }
|
||||
?.bluetoothLeScanner
|
||||
}
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue