For #18770 - Correct addons position in three dot menu based on toolbar position (#18828)

upstream-sync
Elise Richards 3 years ago committed by GitHub
parent 3e37426375
commit 547a843c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,13 +83,13 @@ open class DefaultToolbarMenu(
} else {
oldCoreMenuItems
},
endOfMenuAlwaysVisible = !shouldUseBottomToolbar,
endOfMenuAlwaysVisible = shouldUseBottomToolbar,
store = store,
webExtIconTintColorResource = primaryTextColor,
onAddonsManagerTapped = {
onItemTapped.invoke(ToolbarMenu.Item.AddonsManager)
},
appendExtensionSubMenuAtStart = !shouldUseBottomToolbar
appendExtensionSubMenuAtStart = shouldUseBottomToolbar
)
}
@ -374,6 +374,7 @@ open class DefaultToolbarMenu(
menuItems.reversed()
}
}
val newTabItem = BrowserMenuImageText(
context.getString(R.string.library_new_tab),
R.drawable.ic_new,

Loading…
Cancel
Save