diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index f38ac474f..02199bfcf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -16,7 +16,6 @@ import com.simplemobiletools.commons.dialogs.RenameItemDialog import com.simplemobiletools.commons.extensions.beVisibleIf import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.gallery.R -import com.simplemobiletools.gallery.activities.MediaActivity import com.simplemobiletools.gallery.activities.SimpleActivity import com.simplemobiletools.gallery.dialogs.CopyDialog import com.simplemobiletools.gallery.extensions.* @@ -38,7 +37,6 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList, val markedItems = HashSet() var foregroundColor = 0 var backgroundColor = 0 - var animateGifs = true var itemCnt = 0 fun toggleItemSelection(itemView: View, select: Boolean, pos: Int = -1) { @@ -68,7 +66,6 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList, init { foregroundColor = config.primaryColor backgroundColor = config.backgroundColor - animateGifs = config.animateGifs itemCnt = media.size } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt index 93f4d8279..a52a06377 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt @@ -18,7 +18,6 @@ import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.gallery.BuildConfig import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.activities.SimpleActivity -import com.simplemobiletools.gallery.adapters.MediaAdapter import com.simplemobiletools.gallery.helpers.NOMEDIA import com.simplemobiletools.gallery.helpers.REQUEST_EDIT_IMAGE import com.simplemobiletools.gallery.helpers.REQUEST_SET_WALLPAPER @@ -205,7 +204,7 @@ fun Activity.loadImage(path: String, target: MySquareImageView) { .into(target) } } else if (path.isGif()) { - if (MediaAdapter.animateGifs) { + if (config.animateGifs) { Glide.with(this) .load(path) .asGif()