Skip to content

Commit

Permalink
fixed product icon color blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
ialokim authored and grote committed Mar 6, 2018
1 parent 3bbf067 commit 4b31579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/de/grobox/transportr/ui/LineView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class LineView(context: Context, attr: AttributeSet?) : AppCompatTextView(contex

private fun setDrawable(@DrawableRes res: Int, @ColorInt color: Int?) {
val drawable = getDrawable(context, res)!!
if (color != null) drawable.setColorFilter(color, SRC_IN)
if (color != null) drawable.mutate().setColorFilter(color, SRC_IN)
setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null)
}

Expand Down

0 comments on commit 4b31579

Please sign in to comment.