mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Allow unlocking excluded modules (#2180)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
8639228721
commit
bcc3a0f107
4 changed files with 100 additions and 15 deletions
|
|
@ -206,7 +206,18 @@ class UIViewModel @Inject constructor(
|
|||
private val _lastTraceRouteTime = MutableStateFlow<Long?>(null)
|
||||
val lastTraceRouteTime: StateFlow<Long?> = _lastTraceRouteTime.asStateFlow()
|
||||
|
||||
val clientNotification: StateFlow<MeshProtos.ClientNotification?> = radioConfigRepository.clientNotification
|
||||
private val _excludedModulesUnlocked = MutableStateFlow(false)
|
||||
val excludedModulesUnlocked: StateFlow<Boolean> = _excludedModulesUnlocked.asStateFlow()
|
||||
|
||||
fun unlockExcludedModules() {
|
||||
viewModelScope.launch {
|
||||
_excludedModulesUnlocked.value = true
|
||||
}
|
||||
}
|
||||
|
||||
val clientNotification: StateFlow<MeshProtos.ClientNotification?> =
|
||||
radioConfigRepository.clientNotification
|
||||
|
||||
fun clearClientNotification(notification: MeshProtos.ClientNotification) {
|
||||
radioConfigRepository.clearClientNotification()
|
||||
meshServiceNotifications.clearClientNotification(notification)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue