<Moving item to front of ArrayList leaves me with ...
# stackoverflow
u
Moving item to front of ArrayList leaves me with 2 items at index 0? I have an ArrayList using Kotlin: 0: Abe 1: Baby 2: Cecil I have code that automatically fires when an item in this list has changed. Every time an item changes, I want to move it to the top of the list, and I try to do it like this: //Find item that was updated val index = matchesArrayList.indexOfFirst{ it!!.matchUserID == matchUserID } Log.d(TAG, "Index A: $index")...