mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-07 06:12:56 -05:00
fix: variables not initialized before constructor execution
This commit is contained in:
@@ -143,6 +143,9 @@ class UIViewModel @Inject constructor(
|
||||
|
||||
private val requestIds = MutableStateFlow<HashMap<Int, Boolean>>(hashMapOf())
|
||||
|
||||
private val _snackbarText = MutableLiveData<Any?>(null)
|
||||
val snackbarText: LiveData<Any?> get() = _snackbarText
|
||||
|
||||
init {
|
||||
radioInterfaceService.errorMessage.filterNotNull().onEach {
|
||||
_snackbarText.value = it
|
||||
@@ -318,9 +321,6 @@ class UIViewModel @Inject constructor(
|
||||
_requestChannelUrl.value = null
|
||||
}
|
||||
|
||||
private val _snackbarText = MutableLiveData<Any?>(null)
|
||||
val snackbarText: LiveData<Any?> get() = _snackbarText
|
||||
|
||||
fun showSnackbar(resString: Any) {
|
||||
_snackbarText.value = resString
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user