mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: Client Notification Support (#2095)
This commit is contained in:
parent
2a274e259b
commit
606d1520d8
5 changed files with 101 additions and 1 deletions
|
|
@ -434,6 +434,18 @@ class UIViewModel @Inject constructor(
|
|||
)
|
||||
}.launchIn(viewModelScope)
|
||||
|
||||
radioConfigRepository.clientNotification.filterNotNull().onEach { notification ->
|
||||
showAlert(
|
||||
title = app.getString(R.string.client_notification),
|
||||
message = notification.message,
|
||||
onConfirm = {
|
||||
radioConfigRepository.clearClientNotification()
|
||||
meshServiceNotifications.clearClientNotification(notification)
|
||||
},
|
||||
dismissable = false
|
||||
)
|
||||
}.launchIn(viewModelScope)
|
||||
|
||||
radioConfigRepository.localConfigFlow.onEach { config ->
|
||||
_localConfig.value = config
|
||||
}.launchIn(viewModelScope)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue