1
0
Fork 0

For #5334 - Override custom tab styling in private mode (#7305)

master
Jeff Boek 2019-12-19 18:17:52 -08:00 committed by Tiger Oakes
parent a40af5b134
commit 740572b6d9
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ class CustomTabsIntegration(
// If in private mode, override toolbar background to use private color
// See #5334
if (isPrivate) {
sessionManager.findSessionById(sessionId)?.apply {
customTabConfig = customTabConfig?.copy(toolbarColor = null)
}
toolbar.background = AppCompatResources.getDrawable(
activity,
R.drawable.toolbar_background