mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
avoid always showing the Refreshing spinner at thumbnails view
This commit is contained in:
parent
1935e3147b
commit
0b3b19bcd5
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue