diff --git a/app/build.gradle b/app/build.gradle index 61fd69460..3b30f0b37 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -61,7 +61,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.6.14' + implementation 'com.simplemobiletools:commons:5.6.18' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'androidx.multidex:multidex:2.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt index 100d3c5bd..183ad56c7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt @@ -375,7 +375,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList(selectedKeys.size) val removeMedia = ArrayList(selectedKeys.size) - val position = getSelectedItemPositions() + val positions = getSelectedItemPositions() getSelectedItems().forEach { fileDirItems.add(FileDirItem(it.path, it.name)) @@ -384,7 +384,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList