From 445f7a612a65a99650e342ba790b2512093ba64f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 26 Feb 2017 17:31:39 +0100 Subject: [PATCH] load a smaller preview at fullscreen photos first --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index bc528d2cb..f14d953f8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -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 { override fun onException(e: Exception?, model: String?, target: Target?, isFirstResource: Boolean): Boolean {