mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(NodeMenu): always show remote admin menu item
This commit is contained in:
parent
9aaaea1898
commit
f0f9235223
3 changed files with 0 additions and 6 deletions
|
|
@ -12,7 +12,6 @@ internal fun View.nodeMenu(
|
|||
node: NodeInfo,
|
||||
ignoreIncomingList: List<Int>,
|
||||
isOurNode: Boolean = false,
|
||||
showAdmin: Boolean = false,
|
||||
isManaged: Boolean = false,
|
||||
onMenuItemAction: MenuItem.() -> Unit,
|
||||
) = PopupMenu(context, this, Gravity.NO_GRAVITY, R.attr.actionOverflowMenuStyle, 0).apply {
|
||||
|
|
@ -21,7 +20,6 @@ internal fun View.nodeMenu(
|
|||
inflate(R.menu.menu_nodes)
|
||||
menu.apply {
|
||||
setGroupVisible(R.id.group_remote, !isOurNode)
|
||||
setGroupVisible(R.id.group_admin, showAdmin)
|
||||
setGroupEnabled(R.id.group_admin, !isManaged)
|
||||
findItem(R.id.ignore).apply {
|
||||
isEnabled = isIgnored || ignoreIncomingList.size < 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue