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