From 2b12bf5d53ec5e2b175b80a5b2a91a907d7618e5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 18 Apr 2017 22:22:49 +0200 Subject: [PATCH] do not show the Pull to refresh spinning thing when loading cached images --- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index f18c096a8..7aac66c64 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -223,9 +223,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { val media = Gson().fromJson>(config.loadFolderMedia(mPath), token) ?: ArrayList(1) if (media.isNotEmpty() && !mLoadedInitialPhotos) { gotMedia(media) - } - - if (!mLoadedInitialPhotos) { + } else { media_refresh_layout.isRefreshing = true }