mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +01:00
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
|
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 a new issue