Fix du bug

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-02-19 18:57:18 +01:00
parent 17c2457027
commit 94f1a17709

View File

@@ -46,7 +46,7 @@ class HomepageCountryAdapter(list: List<Country>) : RecyclerView.Adapter<Homepag
val newList = ArrayList(list) val newList = ArrayList(list)
newList.removeAt(position) newList.removeAt(position)
list = newList list = newList
this.notifyItemRemoved(position) this.notifyDataSetChanged()
} }
} }