mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-25 22:18: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 mAllowPickingMultiple = false
|
||||||
private var mShowAll = false
|
private var mShowAll = false
|
||||||
private var mLoadedInitialPhotos = false
|
private var mLoadedInitialPhotos = false
|
||||||
|
private var mShowLoadingIndicator = false
|
||||||
private var mWasFullscreenViewOpen = false
|
private var mWasFullscreenViewOpen = false
|
||||||
private var mLastSearchedText = ""
|
private var mLastSearchedText = ""
|
||||||
private var mLatestMediaId = 0L
|
private var mLatestMediaId = 0L
|
||||||
|
@ -395,7 +396,11 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mShowLoadingIndicator) {
|
||||||
binding.loadingIndicator.show()
|
binding.loadingIndicator.show()
|
||||||
|
mShowLoadingIndicator = false
|
||||||
|
}
|
||||||
|
|
||||||
getMedia()
|
getMedia()
|
||||||
setupLayoutManager()
|
setupLayoutManager()
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:hideAnimationBehavior="inward"
|
app:hideAnimationBehavior="inward"
|
||||||
app:showAnimationBehavior="outward"
|
app:showAnimationBehavior="outward"
|
||||||
app:showDelay="500"
|
app:showDelay="300"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
|
Loading…
Reference in a new issue