Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Custom Tab: Handle addDefaultShareMenuItem() #1401

Closed
pocmo opened this issue Nov 16, 2018 · 6 comments
Closed

Custom Tab: Handle addDefaultShareMenuItem() #1401

pocmo opened this issue Nov 16, 2018 · 6 comments
Assignees
Labels
<customtabs> Component: feature-customtabs 🌟 feature New functionality and improvements <menu> Component: concept-menu, browser-menu, browser-menu2 🌐 reference browser Features, bugs, issues related to the reference browser implementation <toolbar> Components: browser-toolbar, concept-toolbar
Milestone

Comments

@pocmo
Copy link
Contributor

pocmo commented Nov 16, 2018

User story: mozilla-mobile/reference-browser#209

CustomTabsIntent.Builder.addDefaultShareMenuItem().

┆Issue is synchronized with this Jira Task

@pocmo pocmo added 🌟 feature New functionality and improvements <toolbar> Components: browser-toolbar, concept-toolbar <menu> Component: concept-menu, browser-menu, browser-menu2 🌐 reference browser Features, bugs, issues related to the reference browser implementation S <customtabs> Component: feature-customtabs labels Nov 16, 2018
@jonalmeida
Copy link
Contributor

Looks like we're already handling this in the CustomTabConfig as well:

val showShareMenuItem = intent.getBooleanExtra(EXTRA_DEFAULT_SHARE_MENU_ITEM, true)

@pocmo
Copy link
Contributor Author

pocmo commented Jan 3, 2019

Yeah, I think CustomTabConfig should be pretty much complete for our purposes. However we are not using the data inside it for anyhting yet. :)

@jonalmeida
Copy link
Contributor

With this one, we have to change the default value in ChromeCustomConfig to false so that we follow this flag correctly.

We also need to add a way to find and remove the share menu in the BrowserMenuBuilder when false.

@pocmo
Copy link
Contributor Author

pocmo commented Jan 7, 2019

I remember we had a UX discussion that lead to the decision to always show the share menu. Maybe that's how we ended up with that default.

We also need to add a way to find and remove the share menu in the BrowserMenuBuilder when false.

I'm currently working on a PR that will as a side effect add unique ids to menu items. That may be helpful here :)

@pocmo
Copy link
Contributor Author

pocmo commented Jan 7, 2019

We also need to add a way to find and remove the share menu in the BrowserMenuBuilder when false.

Another option may be to introduce a visible(Session) like function - similar to the toolbar actions - that gets evaluated when building the menu.

@jonalmeida
Copy link
Contributor

jonalmeida commented Jan 7, 2019

I remember we had a UX discussion that lead to the decision to always show the share menu. Maybe that's how we ended up with that default.

I'll stick with it as the default if there was some historical reason for it - a good use case to see how well our APIs hold up for business logic. ;)

I'm currently working on a PR that will as a side effect add unique ids to menu items. That may be helpful here :)

I was just trying out a solution with a 'tag' as well. I'm glad that I was at least on the right track!

Another option may be to introduce a visible(Session) like function - similar to the toolbar actions - that gets evaluated when building the menu.

We have a visible function already, so I can do this as well with pretty trivial logic which should work, but we would still need to decide on a default for share or use an ID for it since we build the menu only once in the Components.kt. For now, I've made the backing menu list public in the BrowserMenuBuilder since I have to add/remove menu items from the custom tabs config.

jonalmeida added a commit to jonalmeida/android-components that referenced this issue Jan 19, 2019
jonalmeida added a commit to jonalmeida/android-components that referenced this issue Jan 21, 2019
jonalmeida added a commit to jonalmeida/android-components that referenced this issue Jan 21, 2019
jonalmeida added a commit to jonalmeida/android-components that referenced this issue Jan 21, 2019
jonalmeida added a commit to jonalmeida/android-components that referenced this issue Jan 21, 2019
jonalmeida added a commit to jonalmeida/android-components that referenced this issue Jan 22, 2019
@pocmo pocmo added this to the 0.40 🎧 milestone Jan 22, 2019
@pocmo pocmo mentioned this issue Jan 24, 2019
12 tasks
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 24, 2022
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 24, 2022
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@64aaf72
JohanLorenzo pushed a commit to JohanLorenzo/android-l10n that referenced this issue Oct 25, 2022
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 13, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 13, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 13, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 13, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 14, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 14, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 14, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 14, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 15, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 15, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 15, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 16, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 17, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Jan 18, 2023
…lt share menu for CustomTabs

X-Channel-Revision: [main] mozilla-mobile/android-components@96444dd
X-Channel-Revision: [main] mozilla-mobile/fenix@d039188
X-Channel-Revision: [main] mozilla-mobile/focus-android@a9a09b1
X-Channel-Converted-Revision: [main] mozilla-mobile/firefox-android@64aaf72
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
<customtabs> Component: feature-customtabs 🌟 feature New functionality and improvements <menu> Component: concept-menu, browser-menu, browser-menu2 🌐 reference browser Features, bugs, issues related to the reference browser implementation <toolbar> Components: browser-toolbar, concept-toolbar
Projects
None yet
Development

No branches or pull requests

2 participants