Skip to content

Commit

Permalink
Merge pull request #800 from grahammendick/issue-799
Browse files Browse the repository at this point in the history
  • Loading branch information
grahammendick authored Aug 22, 2024
2 parents 9a88416 + 75ee8ab commit b91673f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ void setTintColor(Integer tintColor) {
}

private void setTintColor(Drawable icon) {
if (icon != null)
icon.setColorFilter(new BlendModeColorFilter(Objects.requireNonNullElseGet(tintColor, () -> getNavigationIconTint() != null ? getNavigationIconTint() : Color.BLACK), BlendMode.SRC_IN));
if (icon != null) {
int defaultTintColor = getNavigationIconTint() != null ? getNavigationIconTint() : Color.BLACK;
icon.setColorFilter(new BlendModeColorFilter(tintColor != null ? tintColor : defaultTintColor, BlendMode.SRC_IN));
}
}

void setNavigationTestID(String navigationTestID) {
Expand Down

0 comments on commit b91673f

Please sign in to comment.