store thumbnail data only if we arent loading them from cache
This commit is contained in:
parent
96b93c4cb2
commit
fe7b425d79
2 changed files with 7 additions and 2 deletions
|
@ -574,7 +574,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
setupAdapter()
|
||||
}
|
||||
|
||||
storeDirectories()
|
||||
if (!isFromCache) {
|
||||
storeDirectories()
|
||||
}
|
||||
}
|
||||
|
||||
private fun storeDirectories() {
|
||||
|
|
|
@ -620,7 +620,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
runOnUiThread {
|
||||
setupAdapter()
|
||||
}
|
||||
storeFolder()
|
||||
|
||||
if (!isFromCache) {
|
||||
storeFolder()
|
||||
}
|
||||
}
|
||||
|
||||
private fun storeFolder() {
|
||||
|
|
Loading…
Reference in a new issue