store thumbnail data only if we arent loading them from cache

This commit is contained in:
tibbi 2018-01-31 19:23:03 +01:00
parent 96b93c4cb2
commit fe7b425d79
2 changed files with 7 additions and 2 deletions

View file

@ -574,7 +574,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
setupAdapter()
}
storeDirectories()
if (!isFromCache) {
storeDirectories()
}
}
private fun storeDirectories() {

View file

@ -620,7 +620,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
runOnUiThread {
setupAdapter()
}
storeFolder()
if (!isFromCache) {
storeFolder()
}
}
private fun storeFolder() {