mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	adding a comment related to removing irrelevant cached files
This commit is contained in:
		| @@ -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)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user