mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
clear mediumGroups before refilling it
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user