From 0b3b19bcd5b2b0c714dd6f3ecb5ded84c5efea79 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 13 Jan 2019 22:26:41 +0100 Subject: [PATCH] avoid always showing the Refreshing spinner at thumbnails view --- .../gallery/pro/activities/MediaActivity.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index 13572628f..5a474751e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -558,7 +558,9 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { } mIsGettingMedia = true - if (!mLoadedInitialPhotos) { + if (mLoadedInitialPhotos) { + startAsyncTask() + } else { getCachedMedia(mPath, mIsGetVideoIntent, mIsGetImageIntent, mMediumDao) { if (it.isEmpty()) { runOnUiThread { @@ -569,9 +571,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { } startAsyncTask() } - } else { - media_refresh_layout.isRefreshing = true - startAsyncTask() } mLoadedInitialPhotos = true