mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-07-29 07:09:50 +00:00
Fix Older versions of app not disappearing properly
This commit is contained in:
@ -1002,9 +1002,12 @@ class AppDetailAdapter(private val callbacks: Callbacks) :
|
|||||||
items[position - 1] = expandItem.items[1]
|
items[position - 1] = expandItem.items[1]
|
||||||
notifyItemRangeChanged(position - 1, 2)
|
notifyItemRangeChanged(position - 1, 2)
|
||||||
} else {
|
} else {
|
||||||
items.removeAt(position - 1)
|
items.removeAll(expandItem.items)
|
||||||
if (position > 0) {
|
if (position > 0) {
|
||||||
notifyItemRemoved(position - 1)
|
notifyItemRangeRemoved(
|
||||||
|
position - expandItem.items.size,
|
||||||
|
expandItem.items.size
|
||||||
|
)
|
||||||
notifyItemChanged(position)
|
notifyItemChanged(position)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user