mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add NodeDetailsScreen with metrics and remote admin navigation
This commit is contained in:
parent
b73c53bc11
commit
6be44675e2
11 changed files with 322 additions and 308 deletions
|
|
@ -46,7 +46,6 @@ class UsersFragment : ScreenFragment("Users"), Logging {
|
|||
node = node,
|
||||
ignoreIncomingList = ignoreIncomingList,
|
||||
isOurNode = isOurNode,
|
||||
isManaged = model.isManaged,
|
||||
) {
|
||||
when (itemId) {
|
||||
R.id.direct_message -> {
|
||||
|
|
@ -77,14 +76,10 @@ class UsersFragment : ScreenFragment("Users"), Logging {
|
|||
}
|
||||
}
|
||||
|
||||
R.id.remote_admin -> {
|
||||
R.id.more_details -> {
|
||||
navigateToRadioConfig(node.num)
|
||||
}
|
||||
|
||||
R.id.metrics -> {
|
||||
navigateToMetrics(node.num)
|
||||
}
|
||||
|
||||
R.id.request_userinfo -> {
|
||||
model.requestUserInfo(node.num)
|
||||
}
|
||||
|
|
@ -101,13 +96,8 @@ class UsersFragment : ScreenFragment("Users"), Logging {
|
|||
}
|
||||
|
||||
private fun navigateToRadioConfig(nodeNum: Int) {
|
||||
info("calling RadioConfig --> destNum: $nodeNum")
|
||||
parentFragmentManager.navigateToRadioConfig(nodeNum)
|
||||
}
|
||||
|
||||
private fun navigateToMetrics(nodeNum: Int) {
|
||||
info("calling Metrics --> destNum: $nodeNum")
|
||||
parentFragmentManager.navigateToMetrics(nodeNum)
|
||||
info("calling NodeDetails --> destNum: $nodeNum")
|
||||
parentFragmentManager.navigateToRadioConfig(nodeNum, "NodeDetails")
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue