use the copy/delete way of moving of folders
This commit is contained in:
parent
72c4c26bd5
commit
7b040bdf4d
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '3.4.0'
|
||||
propVersionName = '3.4.1'
|
||||
kotlin_version = '1.2.10'
|
||||
support_libs = '27.0.2'
|
||||
}
|
||||
|
|
|
@ -174,7 +174,7 @@ open class BaseSimpleActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
if (files.size == 1) {
|
||||
if (File(destinationFolder.absolutePath, files[0].name).exists()) {
|
||||
if (File(destination, files[0].name).exists()) {
|
||||
toast(R.string.name_taken)
|
||||
return
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ open class BaseSimpleActivity : AppCompatActivity() {
|
|||
toast(R.string.copying)
|
||||
startCopyMove(files, destinationFolder, isCopyOperation, copyPhotoVideoOnly)
|
||||
} else {
|
||||
if (isPathOnSD(source) || isPathOnSD(destinationFolder.absolutePath)) {
|
||||
if (isPathOnSD(source) || isPathOnSD(destination) || files.first().isDirectory) {
|
||||
handleSAFDialog(File(source)) {
|
||||
toast(R.string.moving)
|
||||
startCopyMove(files, destinationFolder, false, copyPhotoVideoOnly)
|
||||
|
|
Loading…
Reference in a new issue