From 9f91e14a327c7ccacf07cab69fbdf8c6a7fa9bfb Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 15 Mar 2017 21:16:27 +0100 Subject: [PATCH] add the Glide load stopper to the directories view too --- .../gallery/adapters/DirectoryAdapter.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 a1e399dc0..cbf6f53e2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -313,9 +313,14 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList (Unit)) : SwappingHolder(view, MultiSelector()) { + class ViewHolder(val view: View, val itemClick: (Directory) -> (Unit)) : SwappingHolder(view, MultiSelector()) { fun bindView(activity: SimpleActivity, multiSelectorCallback: ModalMultiSelectorCallback, multiSelector: MultiSelector, directory: Directory, pos: Int, isPinned: Boolean) : View { itemView.apply { @@ -379,6 +384,10 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList