Skip to content

Commit

Permalink
transparent removes the filter again
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Nov 7, 2015
1 parent 6c89cbb commit 66d4161
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,11 @@ private boolean checkImageScrollBeyondBorders(float dx, float dy)

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

public int getTintColor(){
Expand Down

0 comments on commit 66d4161

Please sign in to comment.