From 153c9ed62a4b5ade558bd72da065a12b850e4502 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 16 Mar 2017 19:14:46 +0100 Subject: [PATCH] remove glide loading priorities --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 3 --- 1 file changed, 3 deletions(-) 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 b99e1b0b9..4cfd3e4d9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -10,7 +10,6 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.bumptech.glide.Glide -import com.bumptech.glide.Priority import com.bumptech.glide.load.DecodeFormat import com.bumptech.glide.load.engine.DiskCacheStrategy import com.simplemobiletools.commons.extensions.toast @@ -120,7 +119,6 @@ class PhotoFragment : ViewPagerFragment() { .load(medium.path) .asGif() .diskCacheStrategy(DiskCacheStrategy.NONE) - .priority(if (isFragmentVisible) Priority.IMMEDIATE else Priority.NORMAL) .into(view) } else { loadBitmap() @@ -133,7 +131,6 @@ class PhotoFragment : ViewPagerFragment() { .asBitmap() .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) .into(view)