mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
load the initially visible fullscreen image with the highest priority
This commit is contained in:
parent
1e697e75d6
commit
4c8b7a3c84
1 changed files with 2 additions and 0 deletions
|
@ -359,9 +359,11 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun loadBitmap(addZoomableView: Boolean = true) {
|
private fun loadBitmap(addZoomableView: Boolean = true) {
|
||||||
|
val priority = if (mIsFragmentVisible) Priority.IMMEDIATE else Priority.NORMAL
|
||||||
val options = RequestOptions()
|
val options = RequestOptions()
|
||||||
.signature(mMedium.path.getFileSignature())
|
.signature(mMedium.path.getFileSignature())
|
||||||
.format(DecodeFormat.PREFER_ARGB_8888)
|
.format(DecodeFormat.PREFER_ARGB_8888)
|
||||||
|
.priority(priority)
|
||||||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||||
.fitCenter()
|
.fitCenter()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue