1
0
Fork 0

For #7511 - Override private customtab icon tint (#8138)

master
Tiger Oakes 2020-02-06 09:49:01 -08:00 committed by GitHub
parent f4f93e761e
commit 2ead67a531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,13 @@ class CustomTabsIntegration(
// See #5334
if (isPrivate) {
sessionManager.findSessionById(sessionId)?.apply {
customTabConfig = customTabConfig?.copy(toolbarColor = null)
val config = customTabConfig
customTabConfig = config?.copy(
// Don't set toolbar background automatically
toolbarColor = null,
// Force tinting the action button
actionButtonConfig = config.actionButtonConfig?.copy(tint = true)
)
}
toolbar.background = AppCompatResources.getDrawable(