mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-14 19:26:00 +01:00
do not show the Pull to refresh spinning thing when loading cached images
This commit is contained in:
parent
476e4d4522
commit
2b12bf5d53
@ -223,9 +223,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||||||
val media = Gson().fromJson<ArrayList<Medium>>(config.loadFolderMedia(mPath), token) ?: ArrayList<Medium>(1)
|
val media = Gson().fromJson<ArrayList<Medium>>(config.loadFolderMedia(mPath), token) ?: ArrayList<Medium>(1)
|
||||||
if (media.isNotEmpty() && !mLoadedInitialPhotos) {
|
if (media.isNotEmpty() && !mLoadedInitialPhotos) {
|
||||||
gotMedia(media)
|
gotMedia(media)
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (!mLoadedInitialPhotos) {
|
|
||||||
media_refresh_layout.isRefreshing = true
|
media_refresh_layout.isRefreshing = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user