properly handle Others mimetype files when needed

This commit is contained in:
tibbi 2021-10-13 20:12:30 +02:00
parent 5b1d6ea32b
commit a74315fc66
1 changed files with 8 additions and 0 deletions

View File

@ -238,6 +238,14 @@ class MimeTypesActivity : SimpleActivity(), ItemOperationsListener {
fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
}
}
OTHERS -> {
if (mimetype != "image" && mimetype != "video" && mimetype != "audio" && mimetype != "text" &&
!extraAudioMimeTypes.contains(fullMimetype) && !extraDocumentMimeTypes.contains(fullMimetype) &&
!archiveMimeTypes.contains(fullMimetype)
) {
fileDirItems.add(FileDirItem(path, name, false, 0, size, lastModified))
}
}
}
} catch (e: Exception) {
}