add an additional check at decompressing for avoiding showing wrong toasts

This commit is contained in:
tibbi 2018-09-10 20:00:49 +02:00
parent 457da971ab
commit de0c4bad95
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
private fun extractEntry(newPath: String, entry: ZipEntry, zipFile: ZipFile) {
if (entry.isDirectory) {
if (!activity.createDirectorySync(newPath)) {
if (!activity.createDirectorySync(newPath) && !activity.getDoesFilePathExist(newPath)) {
val error = String.format(activity.getString(R.string.could_not_create_file), newPath)
activity.showErrorToast(error)
}