mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: ClientNotification messages as an alert dialog (#2072)
This commit is contained in:
parent
607e5fd7c4
commit
ad8f91482e
2 changed files with 9 additions and 2 deletions
|
|
@ -424,8 +424,14 @@ class UIViewModel @Inject constructor(
|
|||
|
||||
init {
|
||||
radioConfigRepository.errorMessage.filterNotNull().onEach {
|
||||
showSnackbar(it)
|
||||
radioConfigRepository.clearErrorMessage()
|
||||
showAlert(
|
||||
title = app.getString(R.string.client_notification),
|
||||
message = it,
|
||||
onConfirm = {
|
||||
radioConfigRepository.clearErrorMessage()
|
||||
},
|
||||
dismissable = false
|
||||
)
|
||||
}.launchIn(viewModelScope)
|
||||
|
||||
radioConfigRepository.localConfigFlow.onEach { config ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue