Have six or more items in the list; say, all stocks.
Add crypto, which is dark gray.
Delete crypto, and one of the stocks shifts to dark gray (like, 5th)
What you expected to see:
The color-coding for cryptos to shift accordingly.
What you saw instead:
An index mismatch.
When commenting out the 'holder.itemView?.setBackgroundColor(Color.GRAY)' on line 67 fixes this issue but then we can't have any cryptos being highlighted in gray.
Steps to reproduce the bug:
What you expected to see:
The color-coding for cryptos to shift accordingly.
What you saw instead:
An index mismatch.
When commenting out the 'holder.itemView?.setBackgroundColor(Color.GRAY)' on line 67 fixes this issue but then we can't have any cryptos being highlighted in gray.