jimdc / TradeTracker

by Advent Fintech LLC
1 stars 0 forks source link

Swipe deleting any element on the recyclerView causes the 5th element to get a dark grey background #97

Open nick433 opened 6 years ago

nick433 commented 6 years ago

Steps to reproduce the bug:

  1. Have six or more items in the list; say, all stocks.
  2. Add crypto, which is dark gray.
  3. 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.