do not show the Pull to refresh spinning thing when loading cached images

This commit is contained in:
tibbi 2017-04-18 22:22:49 +02:00
parent 476e4d4522
commit 2b12bf5d53

View file

@ -223,9 +223,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
val media = Gson().fromJson<ArrayList<Medium>>(config.loadFolderMedia(mPath), token) ?: ArrayList<Medium>(1)
if (media.isNotEmpty() && !mLoadedInitialPhotos) {
gotMedia(media)
}
if (!mLoadedInitialPhotos) {
} else {
media_refresh_layout.isRefreshing = true
}