feat: explicitly enable the share-button in Chrome Custom Tabs (#4223)

Chrome defaults to showing it anyways, but Firefox doesn't. By enabling
this feature, users across both browsers will now have the same
experience.

closes tuskyapp/Tusky/issues/4137
This commit is contained in:
Maximilian Ertl 2024-01-09 20:08:41 +01:00 committed by GitHub
parent c9f8b043c5
commit 27a610bd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ fun openLinkInCustomTab(uri: Uri, context: Context) {
.build()
val customTabsIntent = CustomTabsIntent.Builder()
.setDefaultColorSchemeParams(colorSchemeParams)
.setShareState(CustomTabsIntent.SHARE_STATE_ON)
.setShowTitle(true)
.build()