mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
avoid always showing the Refreshing spinner at thumbnails view
This commit is contained in:
@ -558,7 +558,9 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mIsGettingMedia = true
|
mIsGettingMedia = true
|
||||||
if (!mLoadedInitialPhotos) {
|
if (mLoadedInitialPhotos) {
|
||||||
|
startAsyncTask()
|
||||||
|
} else {
|
||||||
getCachedMedia(mPath, mIsGetVideoIntent, mIsGetImageIntent, mMediumDao) {
|
getCachedMedia(mPath, mIsGetVideoIntent, mIsGetImageIntent, mMediumDao) {
|
||||||
if (it.isEmpty()) {
|
if (it.isEmpty()) {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
@ -569,9 +571,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
|||||||
}
|
}
|
||||||
startAsyncTask()
|
startAsyncTask()
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
media_refresh_layout.isRefreshing = true
|
|
||||||
startAsyncTask()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mLoadedInitialPhotos = true
|
mLoadedInitialPhotos = true
|
||||||
|
Reference in New Issue
Block a user