update commons to 2.9.9

This commit is contained in:
tibbi 2017-03-11 22:56:57 +01:00
parent 8232bf9758
commit 8ebdc91649
4 changed files with 4 additions and 5 deletions

View File

@ -32,7 +32,7 @@ android {
}
dependencies {
compile 'com.simplemobiletools:commons:2.9.8'
compile 'com.simplemobiletools:commons:2.9.9'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'

View File

@ -193,7 +193,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
try {
val file = File(it)
if (file.exists()) {
toast(R.string.file_exists)
toast(R.string.name_taken)
return@SaveAsDialog
}

View File

@ -41,7 +41,7 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
return@setOnClickListener
}
if (sourcePath.trimEnd('/') == destinationPath.trimEnd('/')) {
if (sourcePath == destinationPath.trimEnd('/')) {
context.toast(R.string.source_and_destination_same)
return@setOnClickListener
}
@ -54,7 +54,7 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
if (files.size == 1) {
if (File(destinationPath, files[0].name).exists()) {
context.toast(R.string.file_exists)
context.toast(R.string.name_taken)
return@setOnClickListener
}
}

View File

@ -100,4 +100,3 @@
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>