mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
load a smaller preview at fullscreen photos first
This commit is contained in:
parent
4311529664
commit
445f7a612a
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
.transform(GlideRotateTransformation(context, degrees))
|
||||
.format(if (medium.isPng()) DecodeFormat.PREFER_ARGB_8888 else DecodeFormat.PREFER_RGB_565)
|
||||
.priority(if (isFragmentVisible) Priority.IMMEDIATE else Priority.NORMAL)
|
||||
.thumbnail(0.3f)
|
||||
.diskCacheStrategy(DiskCacheStrategy.NONE)
|
||||
.listener(object : RequestListener<String, Bitmap> {
|
||||
override fun onException(e: Exception?, model: String?, target: Target<Bitmap>?, isFirstResource: Boolean): Boolean {
|
||||
|
|
Loading…
Reference in a new issue