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,8 +574,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
setupAdapter() setupAdapter()
} }
if (!isFromCache) {
storeDirectories() storeDirectories()
} }
}
private fun storeDirectories() { private fun storeDirectories() {
if (!config.temporarilyShowHidden && config.tempFolderPath.isEmpty()) { if (!config.temporarilyShowHidden && config.tempFolderPath.isEmpty()) {

View file

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