2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

For #1719: tracking protection icon in quick settings is almost invisible

This commit is contained in:
Sören Hentzschel 2019-04-18 23:19:32 +02:00 committed by Colin Lee
parent 85245d7b40
commit 8ae567244b

View File

@ -108,8 +108,6 @@ class QuickSettingsUIView(
context context
) else DefaultThemeManager.resolveAttribute(R.attr.neutral, context) ) else DefaultThemeManager.resolveAttribute(R.attr.neutral, context)
val icon = AppCompatResources.getDrawable(context, drawableId) val icon = AppCompatResources.getDrawable(context, drawableId)
val resolvedColor = ContextCompat.getColor(context, drawableTint)
icon?.setTint(resolvedColor)
trackingProtectionSwitch.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null) trackingProtectionSwitch.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null)
trackingProtectionSwitch.isChecked = isTrackingProtectionOn trackingProtectionSwitch.isChecked = isTrackingProtectionOn