mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: enhance map navigation and waypoint handling (#4814)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
802aa09aab
commit
5edb8abd05
15 changed files with 95 additions and 16 deletions
|
|
@ -78,7 +78,8 @@ fun AdaptiveContactsScreen(
|
|||
// Check if we navigated here from another screen (e.g., from Nodes or Map)
|
||||
val previousKey = if (backStack.size > 1) backStack[backStack.size - 2] else null
|
||||
val isFromDifferentGraph =
|
||||
previousKey !is ContactsRoutes.ContactsGraph &&
|
||||
previousKey != null &&
|
||||
previousKey !is ContactsRoutes.ContactsGraph &&
|
||||
previousKey !is ContactsRoutes.Contacts &&
|
||||
previousKey !is ContactsRoutes.Messages
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,12 @@ class MessageViewModel(
|
|||
}
|
||||
}
|
||||
|
||||
fun setContactKey(contactKey: String) {
|
||||
if (contactKeyForPagedMessages.value != contactKey) {
|
||||
contactKeyForPagedMessages.value = contactKey
|
||||
}
|
||||
}
|
||||
|
||||
fun setTitle(title: String) {
|
||||
viewModelScope.launch { _title.value = title }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue