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 { 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.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1' compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'

View file

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

View file

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

View file

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