remove a file validity check at deleting from thumbnails view
This commit is contained in:
parent
9b83fb2424
commit
fa5a5651ad
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue