mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
store latestMediaId only when not from cache, should improve new media discovery
This commit is contained in:
@ -527,9 +527,11 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun gotDirectories(newDirs: ArrayList<Directory>, isFromCache: Boolean) {
|
private fun gotDirectories(newDirs: ArrayList<Directory>, isFromCache: Boolean) {
|
||||||
Thread {
|
if (!isFromCache) {
|
||||||
mLatestMediaId = getLatestMediaId()
|
Thread {
|
||||||
}.start()
|
mLatestMediaId = getLatestMediaId()
|
||||||
|
}.start()
|
||||||
|
}
|
||||||
|
|
||||||
val dirs = getSortedDirectories(newDirs)
|
val dirs = getSortedDirectories(newDirs)
|
||||||
directories_refresh_layout.isRefreshing = false
|
directories_refresh_layout.isRefreshing = false
|
||||||
|
Reference in New Issue
Block a user