From 9433184d6bd8ad747c36654f9267251943786714 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 10 Aug 2019 20:03:55 +0200 Subject: [PATCH] catching another exception at deleting dir paths --- .../gallery/pro/activities/MediaActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index 1ed780653..c248e6b05 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -632,7 +632,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { private fun deleteDBDirectory() { ensureBackgroundThread { - mDirectoryDao.deleteDirPath(mPath) + try { + mDirectoryDao.deleteDirPath(mPath) + } catch (ignored: Exception) { + } } }