clear mediumGroups before refilling it

This commit is contained in:
tibbi 2018-06-22 13:18:57 +02:00
parent 87ebadfdc6
commit 8cf0e9d7d4
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {