Fix webview toolbar color when switching system themes

This commit is contained in:
Jays2Kings 2021-09-30 15:24:16 -04:00
parent cfedcb7001
commit 4892096f5e

View file

@ -160,6 +160,7 @@ open class BaseWebViewActivity : BaseActivity<WebviewActivityBinding>() {
255
)
binding.toolbar.setBackgroundColor(getResourceColor(R.attr.colorSecondary))
binding.toolbar.setBackgroundColor(getResourceColor(R.attr.colorSurface))
binding.toolbar.popupTheme = if (lightMode) R.style.ThemeOverlay_MaterialComponents else R
.style.ThemeOverlay_MaterialComponents_Dark
val tintColor = getResourceColor(R.attr.actionBarTintColor)