New issue
Advanced search Search tips

Issue 829675 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

Allow hiding bookmark and download buttons

Reported by guisg...@gmail.com, Apr 6 2018

Issue description

I couldn't find the proper template for requesting new features, so I'll just go ahead and describe it.

I'm using a Chrome Custom Tab on my Android app and I'd like to be able to disable a few buttons that pop up automatically when I launch it to open a Google drive file, namely the button for bookmarking the page and the button for downloading it.

In the link below you can find an image highlighting which buttons exactly I seek to hide in my custom tab. I understand that this is not possible right now, hence the feature request. Thank you all in advance!

https://stackoverflow.com/questions/49548555/how-to-hide-certain-actions-from-the-chrome-custom-tab-menu-e-g-the-bookmark-a


 
Components: UI>Browser>Mobile>CustomTabs
Labels: Needs-triage-Mobile Triaged-Mobile Type-Feature
Updating the issue. So that the Feature Request gets addressed.
Status: WontFix (was: Unconfirmed)
Summary: Allow hiding bookmark and download buttons (was: Chrome Custom Tab feature request)
There is a "hidden" API[1] that lets you hide these buttons: add an extra with the key `org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_STAR_BUTTON` and the value `true` to the Intent before launching it to disable the bookmark button, and one with the key `org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_DOWNLOAD_BUTTON` to disable the download button.

Note that this doesn't fully disable the _functionality_: It's still possible to reparent the custom tab to Chrome and add a bookmark or download the page there.

Also note that this is not a public API, so it might disappear in future versions of Chrome. 

[1]: https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java?l=88&rcl=920078f92fe97a1e0679fc16517d2880f11b7352

Sign in to add a comment