Skip to content

Commit

Permalink
fix(android): amend ImageView tintColor (#11696)
Browse files Browse the repository at this point in the history
Fixes TIMOB-27881
  • Loading branch information
garymathews committed May 11, 2020
1 parent bc67f73 commit e025e3b
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -489,12 +489,13 @@ private boolean checkImageScrollBeyondBorders(float dx, float dy)

public void setTintColor(String color)
{
this.tintColor = TiColorHelper.parseColor(color);
if (this.tintColor == 0) {
if (color == null || color.isEmpty()) {
imageView.clearColorFilter();
} else {
imageView.setColorFilter(this.tintColor, Mode.SRC_ATOP);
return;
}

this.tintColor = TiColorHelper.parseColor(color);
imageView.setColorFilter(this.tintColor, Mode.SRC_IN);
}

public int getTintColor()
Expand Down

0 comments on commit e025e3b

Please sign in to comment.