do not cache media while temporarily showing hidden is enabled
This commit is contained in:
parent
1b53acd096
commit
e3f0d7ea56
2 changed files with 9 additions and 5 deletions
|
@ -342,8 +342,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
}
|
||||
|
||||
private fun storeDirectories() {
|
||||
val directories = Gson().toJson(mDirs)
|
||||
config.directories = directories
|
||||
if (!config.temporarilyShowHidden) {
|
||||
val directories = Gson().toJson(mDirs)
|
||||
config.directories = directories
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupAdapter() {
|
||||
|
|
|
@ -399,9 +399,11 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
}
|
||||
|
||||
private fun storeFolder() {
|
||||
val subList = mMedia.subList(0, Math.min(SAVE_MEDIA_CNT, mMedia.size))
|
||||
val json = Gson().toJson(subList)
|
||||
config.saveFolderMedia(mPath, json)
|
||||
if (!config.temporarilyShowHidden) {
|
||||
val subList = mMedia.subList(0, Math.min(SAVE_MEDIA_CNT, mMedia.size))
|
||||
val json = Gson().toJson(subList)
|
||||
config.saveFolderMedia(mPath, json)
|
||||
}
|
||||
}
|
||||
|
||||
override fun deleteFiles(files: ArrayList<File>) {
|
||||
|
|
Loading…
Reference in a new issue