-
Notifications
You must be signed in to change notification settings - Fork 473
Custom Tab: Handle addDefaultShareMenuItem() #1401
Comments
Looks like we're already handling this in the Line 109 in 210751a
|
Yeah, I think |
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 |
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'm currently working on a PR that will as a side effect add unique ids to menu items. That may be helpful here :) |
Another option may be to introduce a visible(Session) like function - similar to the toolbar actions - that gets evaluated when building the menu. |
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 was just trying out a solution with a 'tag' as well. I'm glad that I was at least on the right track!
We have a visible function already, |
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
User story: mozilla-mobile/reference-browser#209
CustomTabsIntent.Builder.addDefaultShareMenuItem()
.┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: