mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
update the item count at thumbnails after delete
This commit is contained in:
parent
4cfdb31a2d
commit
08764e9db3
2 changed files with 2 additions and 0 deletions
|
@ -294,6 +294,7 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
||||||
dirs.removeAll(removeFolders)
|
dirs.removeAll(removeFolders)
|
||||||
markedItems.clear()
|
markedItems.clear()
|
||||||
listener?.tryDeleteFolders(folders)
|
listener?.tryDeleteFolders(folders)
|
||||||
|
itemCnt = dirs.size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,7 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList<Medium>,
|
||||||
media.removeAll(removeMedia)
|
media.removeAll(removeMedia)
|
||||||
markedItems.clear()
|
markedItems.clear()
|
||||||
listener?.deleteFiles(files)
|
listener?.deleteFiles(files)
|
||||||
|
itemCnt = media.size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue