add an extra check to remove the empty "Favorites" folder if necessary

This commit is contained in:
tibbi 2018-07-24 11:36:00 +02:00
parent 624a0d5ca3
commit b93ab89731

View file

@ -572,6 +572,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
deleteDirectoryIfEmpty()
deleteDBDirectory()
}
if (mPath == FAVORITES) {
Thread {
galleryDB.DirectoryDao().deleteDirPath(FAVORITES)
}.start()
}
finish()
true
} else {