mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 04:28:00 +01:00
Show loading indicator only on initial load
This commit is contained in:
parent
45db8c19aa
commit
654f0654a1
2 changed files with 7 additions and 2 deletions
|
@ -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 {
|
|||
}
|
||||
}
|
||||
|
||||
if (mShowLoadingIndicator) {
|
||||
binding.loadingIndicator.show()
|
||||
mShowLoadingIndicator = false
|
||||
}
|
||||
|
||||
getMedia()
|
||||
setupLayoutManager()
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
android:visibility="gone"
|
||||
app:hideAnimationBehavior="inward"
|
||||
app:showAnimationBehavior="outward"
|
||||
app:showDelay="500"
|
||||
app:showDelay="300"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<RelativeLayout
|
||||
|
|
Loading…
Reference in a new issue