2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

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

This commit is contained in:
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

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(