mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: move UI text logic to view model
This commit is contained in:
parent
28b905db23
commit
e050ebd2a9
2 changed files with 11 additions and 10 deletions
|
|
@ -100,7 +100,11 @@ class BTScanModel @Inject constructor(
|
|||
}
|
||||
|
||||
var selectedAddress: String? = null
|
||||
val errorText = object : MutableLiveData<String?>(null) {}
|
||||
val errorText = MutableLiveData<String?>(null)
|
||||
|
||||
fun setErrorText(text: String) {
|
||||
errorText.value = text
|
||||
}
|
||||
|
||||
private var scanner: BluetoothLeScanner? = null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue