show a nicer error message at copying to an invalid folder
This commit is contained in:
parent
09bea7d508
commit
893690d569
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class PickDirectoryDialog(
|
||||||
activity.toast(R.string.source_and_destination_same)
|
activity.toast(R.string.source_and_destination_same)
|
||||||
return@DirectoryAdapter
|
return@DirectoryAdapter
|
||||||
} else if (isPickingCopyMoveDestination && activity.isRestrictedWithSAFSdk30(path) && !activity.isInDownloadDir(path)) {
|
} else if (isPickingCopyMoveDestination && activity.isRestrictedWithSAFSdk30(path) && !activity.isInDownloadDir(path)) {
|
||||||
activity.toast(R.string.system_folder_restriction, Toast.LENGTH_LONG)
|
activity.toast(R.string.system_folder_copy_restriction, Toast.LENGTH_LONG)
|
||||||
return@DirectoryAdapter
|
return@DirectoryAdapter
|
||||||
} else {
|
} else {
|
||||||
activity.handleLockedFolderOpening(path) { success ->
|
activity.handleLockedFolderOpening(path) { success ->
|
||||||
|
|
Loading…
Reference in a new issue