mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: CompanionDeviceManager context
This commit is contained in:
parent
ca7e459dfe
commit
d4c125b962
2 changed files with 5 additions and 11 deletions
|
|
@ -131,7 +131,6 @@ class BTScanModel @Inject constructor(
|
|||
debug("BTScanModel cleared")
|
||||
}
|
||||
|
||||
private val deviceManager get() = context.deviceManager
|
||||
val hasCompanionDeviceApi get() = application.hasCompanionDeviceApi()
|
||||
val hasBluetoothPermission get() = application.hasBluetoothPermission()
|
||||
private val usbManager get() = context.usbManager
|
||||
|
|
@ -373,7 +372,7 @@ class BTScanModel @Inject constructor(
|
|||
@SuppressLint("NewApi")
|
||||
private fun startCompanionScan() {
|
||||
debug("starting companion scan")
|
||||
deviceManager?.associate(
|
||||
context.companionDeviceManager?.associate(
|
||||
associationRequest(),
|
||||
@SuppressLint("NewApi")
|
||||
object : CompanionDeviceManager.Callback() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue