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,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()) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue