mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: initialize devices before constructor execution
This commit is contained in:
parent
189e9aeee4
commit
4e9ec5f096
1 changed files with 1 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ class BTScanModel @Inject constructor(
|
|||
) : ViewModel(), Logging {
|
||||
|
||||
private val context: Context get() = application.applicationContext
|
||||
val devices = MutableLiveData<MutableMap<String, DeviceListEntry>>(mutableMapOf())
|
||||
|
||||
init {
|
||||
bluetoothRepository.state.value.bondedDevices.onEach {
|
||||
|
|
@ -341,8 +342,6 @@ class BTScanModel @Inject constructor(
|
|||
)
|
||||
}
|
||||
|
||||
val devices = MutableLiveData<MutableMap<String, DeviceListEntry>>(mutableMapOf())
|
||||
|
||||
private val _changeDeviceAddress = MutableLiveData<String?>(null)
|
||||
val changeDeviceAddress: LiveData<String?> get() = _changeDeviceAddress
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue