mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: show node details by long-pressing a node marker on map (#2104)
This commit is contained in:
parent
634907d708
commit
82dce30739
4 changed files with 61 additions and 7 deletions
|
|
@ -31,7 +31,6 @@ import com.geeksville.mesh.R
|
|||
import com.geeksville.mesh.model.UIViewModel
|
||||
import com.geeksville.mesh.ui.TopLevelDestination.Companion.isTopLevel
|
||||
import com.geeksville.mesh.ui.debug.DebugScreen
|
||||
import com.geeksville.mesh.ui.map.MapView
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
enum class AdminRoute(@StringRes val title: Int) {
|
||||
|
|
@ -47,10 +46,6 @@ const val DEEP_LINK_BASE_URI = "meshtastic://meshtastic"
|
|||
sealed interface Graph : Route
|
||||
@Serializable
|
||||
sealed interface Route {
|
||||
|
||||
@Serializable
|
||||
data object Map : Route
|
||||
|
||||
@Serializable
|
||||
data object DebugPanel : Route
|
||||
}
|
||||
|
|
@ -92,7 +87,7 @@ fun NavGraph(
|
|||
) {
|
||||
contactsGraph(navController, uIViewModel)
|
||||
nodesGraph(navController, uIViewModel,)
|
||||
composable<Route.Map> { MapView(uIViewModel) }
|
||||
mapGraph(navController, uIViewModel)
|
||||
channelsGraph(navController, uIViewModel)
|
||||
connectionsGraph(navController, uIViewModel)
|
||||
composable<Route.DebugPanel> { DebugScreen() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue