From ebd14626cb38474fc93f867ad6e178b9b610e268 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 17 Mar 2017 19:54:39 +0100 Subject: [PATCH] remove the string signatures from recyclerviews --- .../gallery/adapters/DirectoryAdapter.kt | 16 +++++++--------- .../gallery/adapters/MediaAdapter.kt | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index bd1007780..b50ac2d51 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -11,7 +11,6 @@ import com.bignerdranch.android.multiselector.SwappingHolder import com.bumptech.glide.Glide import com.bumptech.glide.load.DecodeFormat import com.bumptech.glide.load.engine.DiskCacheStrategy -import com.bumptech.glide.signature.StringSignature import com.simplemobiletools.commons.asynctasks.CopyMoveTask import com.simplemobiletools.commons.dialogs.ConfirmationDialog import com.simplemobiletools.commons.dialogs.PropertiesDialog @@ -330,21 +329,20 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList, toggleItemSelection(this, markedItems.contains(pos), pos) val path = medium.path - val timestampSignature = StringSignature(medium.date_modified.toString()) if (medium.isGif()) { if (animateGifs) { - Glide.with(activity).load(path).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).signature(timestampSignature) - .placeholder(backgroundColor).centerCrop().crossFade().into(medium_thumbnail) + Glide.with(activity).load(path).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).placeholder(backgroundColor) + .centerCrop().crossFade().into(medium_thumbnail) } else { - Glide.with(activity).load(path).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).signature(timestampSignature) - .placeholder(backgroundColor).centerCrop().into(medium_thumbnail) + Glide.with(activity).load(path).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).placeholder(backgroundColor) + .centerCrop().into(medium_thumbnail) } } else if (medium.isPng()) { Glide.with(activity).load(path).asBitmap().format(DecodeFormat.PREFER_ARGB_8888).diskCacheStrategy(DiskCacheStrategy.RESULT) - .signature(timestampSignature).placeholder(backgroundColor).centerCrop().into(medium_thumbnail) + .placeholder(backgroundColor).centerCrop().into(medium_thumbnail) } else { - Glide.with(activity).load(path).diskCacheStrategy(DiskCacheStrategy.RESULT).signature(timestampSignature) - .placeholder(backgroundColor).centerCrop().crossFade().into(medium_thumbnail) + Glide.with(activity).load(path).diskCacheStrategy(DiskCacheStrategy.RESULT).placeholder(backgroundColor) + .centerCrop().crossFade().into(medium_thumbnail) } setOnClickListener { viewClicked(multiSelector, medium, pos) }