diff --git a/app/build.gradle b/app/build.gradle index 8e3541d06..b4f3b0e09 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:4.2.9' + implementation 'com.simplemobiletools:commons:4.2.10' implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0' implementation 'com.android.support:multidex:1.0.3' implementation 'it.sephiroth.android.exif:library:1.0.1' 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 3eb4fd15d..375fa60f3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -104,6 +104,8 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList, } } - override fun getSelectableItemCount() = media.size + override fun getSelectableItemCount() = thumbnailItems.filter { it is ThumbnailMedium }.size + + override fun getIsItemSelectable(position: Int) = !isASectionTitle(position) override fun onViewRecycled(holder: ViewHolder) { super.onViewRecycled(holder)