mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-01 20:16:43 +01:00
adding a comment related to removing irrelevant cached files
This commit is contained in:
parent
a6057f7fe4
commit
c6640eaa9a
@ -612,6 +612,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||
try {
|
||||
gotMedia(newMedia, false)
|
||||
|
||||
// remove cached files that are no longer valid for whatever reason
|
||||
val newPaths = newMedia.mapNotNull { it as? Medium }.map { it.path }
|
||||
oldMedia.mapNotNull { it as? Medium }.filter { !newPaths.contains(it.path) }.forEach {
|
||||
if (mPath == FAVORITES && getDoesFilePathExist(it.path)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user