diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index e16f0bfc6..5dc69d41e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -572,6 +572,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { deleteDirectoryIfEmpty() deleteDBDirectory() } + + if (mPath == FAVORITES) { + Thread { + galleryDB.DirectoryDao().deleteDirPath(FAVORITES) + }.start() + } + finish() true } else {