clear mediumGroups before refilling it
This commit is contained in:
parent
87ebadfdc6
commit
8cf0e9d7d4
|
@ -376,6 +376,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mediumGroups.clear()
|
||||||
media.forEach {
|
media.forEach {
|
||||||
val key = it.getGroupingKey(currentGrouping)
|
val key = it.getGroupingKey(currentGrouping)
|
||||||
if (!mediumGroups.containsKey(key)) {
|
if (!mediumGroups.containsKey(key)) {
|
||||||
|
|
Loading…
Reference in New Issue