Skip to content

Commit

Permalink
For mozilla-mobile#10537 - Applies tint to imageView instead of drawable
Browse files Browse the repository at this point in the history
 `Drawable.setTint` did not correctly apply the tint received from Fenix. Switching to `imageView.setTintResource` fixes the issue.
  • Loading branch information
codrut.topliceanu authored and Grisha Kruglov committed Sep 11, 2021
1 parent 3e60952 commit 55635b1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -111,7 +111,7 @@ class WebExtensionBrowserMenuItem(
internal fun setupIcon(view: View, imageView: ImageView, iconTintColorResource: Int?) {
MainScope().launch {
loadIcon(view.context, imageView.measuredHeight)?.let {
iconTintColorResource?.let { tint -> it.setTint(tint) }
iconTintColorResource?.let { tint -> imageView.setTintResource(tint) }
imageView.setImageDrawable(it)
}
}
Expand Down

0 comments on commit 55635b1

Please sign in to comment.