mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
update commons to 2.9.9
This commit is contained in:
parent
8232bf9758
commit
8ebdc91649
4 changed files with 4 additions and 5 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,4 +100,3 @@
|
|||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
|
||||
|
|
Loading…
Reference in a new issue