update commons to 5.6.18

This commit is contained in:
tibbi 2019-01-27 18:12:06 +01:00
parent eb85ad54c1
commit 0207800259
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ android {
} }
dependencies { 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 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1'

View file

@ -375,7 +375,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
activity.handleSAFDialog(SAFPath) { activity.handleSAFDialog(SAFPath) {
val fileDirItems = ArrayList<FileDirItem>(selectedKeys.size) val fileDirItems = ArrayList<FileDirItem>(selectedKeys.size)
val removeMedia = ArrayList<Medium>(selectedKeys.size) val removeMedia = ArrayList<Medium>(selectedKeys.size)
val position = getSelectedItemPositions() val positions = getSelectedItemPositions()
getSelectedItems().forEach { getSelectedItems().forEach {
fileDirItems.add(FileDirItem(it.path, it.name)) fileDirItems.add(FileDirItem(it.path, it.name))
@ -384,7 +384,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
media.removeAll(removeMedia) media.removeAll(removeMedia)
listener?.tryDeleteFiles(fileDirItems) listener?.tryDeleteFiles(fileDirItems)
removeSelectedItems(position) removeSelectedItems(positions)
} }
} }