mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-08 16:59:55 +00:00
Fix Older versions of app not disappearing properly
This commit is contained in:
parent
5f4dffd483
commit
fb019bb283
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user