diff --git a/app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt index 8e03980e6..cb120b8f8 100644 --- a/app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt @@ -49,6 +49,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { private var mAllowPickingMultiple = false private var mShowAll = false private var mLoadedInitialPhotos = false + private var mShowLoadingIndicator = false private var mWasFullscreenViewOpen = false private var mLastSearchedText = "" private var mLatestMediaId = 0L @@ -395,7 +396,11 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { } } - binding.loadingIndicator.show() + if (mShowLoadingIndicator) { + binding.loadingIndicator.show() + mShowLoadingIndicator = false + } + getMedia() setupLayoutManager() } diff --git a/app/src/main/res/layout/activity_media.xml b/app/src/main/res/layout/activity_media.xml index daebcb237..39691bb59 100644 --- a/app/src/main/res/layout/activity_media.xml +++ b/app/src/main/res/layout/activity_media.xml @@ -20,7 +20,7 @@ android:visibility="gone" app:hideAnimationBehavior="inward" app:showAnimationBehavior="outward" - app:showDelay="500" + app:showDelay="300" tools:visibility="visible" />