Skip to content

Commit 33cee86

Browse files
committed
Fix icon tint for dynamic item binder
Either set color type or custom color.
1 parent be0b832 commit 33cee86

File tree

1 file changed

+2
-2
lines changed
  • dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/recyclerview/binder/factory

1 file changed

+2
-2
lines changed

dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/recyclerview/binder/factory/ItemBinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
6060
return;
6161
}
6262

63-
Dynamic.setColorType(holder.getDynamicItemView(), getData().getColorType());
64-
Dynamic.setColor(holder.getDynamicItemView(), getData().getColor());
63+
Dynamic.setColorTypeOrColor(holder.getDynamicItemView(),
64+
getData().getColorType(), getData().getColor());
6565
Dynamic.setContrastWithColorTypeOrColor(holder.getDynamicItemView(),
6666
getData().getContrastWithColorType(), getData().getContrastWithColor());
6767
Dynamic.setBackgroundAwareSafe(holder.getDynamicItemView(),

0 commit comments

Comments
 (0)