From e7dbf303cbbf388e883385049bb8ae468f0cb273 Mon Sep 17 00:00:00 2001 From: SlaVcE <102253539+SlaVcE14@users.noreply.github.com> Date: Sat, 22 Jul 2023 23:15:13 +0200 Subject: [PATCH] fix list item background color - image fix for DefaultImageListAdapter --- .../library/customdialog/adapter/DefaultImageListAdapter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java b/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java index b5fd459..4846a9a 100644 --- a/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java +++ b/SJDialog/src/main/java/com/sjapps/library/customdialog/adapter/DefaultImageListAdapter.java @@ -116,6 +116,7 @@ public void onBindViewHolder(@NonNull ViewHolder holder, int position) { private void setBackground(@NonNull ViewHolder holder, int position) { if (!isSelectable) { setItemResource(holder, itemBgRes); + setItemColor(holder,listItemBgColor); return; }