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 {
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'

View file

@ -375,7 +375,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
activity.handleSAFDialog(SAFPath) {
val fileDirItems = ArrayList<FileDirItem>(selectedKeys.size)
val removeMedia = ArrayList<Medium>(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<Thumbnai
media.removeAll(removeMedia)
listener?.tryDeleteFiles(fileDirItems)
removeSelectedItems(position)
removeSelectedItems(positions)
}
}