remove a file validity check at deleting from thumbnails view

This commit is contained in:
tibbi 2017-05-26 15:41:24 +02:00
parent 9b83fb2424
commit fa5a5651ad

View file

@ -405,7 +405,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
} }
override fun deleteFiles(files: ArrayList<File>) { override fun deleteFiles(files: ArrayList<File>) {
val filtered = files.filter { it.exists() && it.isImageVideoGif() } as ArrayList val filtered = files.filter { it.isImageVideoGif() } as ArrayList
deleteFiles(filtered) { deleteFiles(filtered) {
if (!it) { if (!it) {
toast(R.string.unknown_error_occurred) toast(R.string.unknown_error_occurred)