mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor permissions
This commit is contained in:
parent
40313ddca6
commit
4f4750c339
11 changed files with 67 additions and 218 deletions
|
|
@ -131,7 +131,7 @@ class BTScanModel @Inject constructor(
|
|||
private val bluetoothAdapter = context.bluetoothManager?.adapter
|
||||
private val deviceManager get() = context.deviceManager
|
||||
val hasCompanionDeviceApi get() = context.hasCompanionDeviceApi()
|
||||
private val hasConnectPermission get() = application.hasConnectPermission()
|
||||
private val hasBluetoothPermission get() = application.hasBluetoothPermission()
|
||||
private val usbManager get() = context.usbManager
|
||||
|
||||
var selectedAddress: String? = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue