mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
add an extra check to remove the empty "Favorites" folder if necessary
This commit is contained in:
parent
624a0d5ca3
commit
b93ab89731
1 changed files with 7 additions and 0 deletions
|
@ -572,6 +572,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
|||
deleteDirectoryIfEmpty()
|
||||
deleteDBDirectory()
|
||||
}
|
||||
|
||||
if (mPath == FAVORITES) {
|
||||
Thread {
|
||||
galleryDB.DirectoryDao().deleteDirPath(FAVORITES)
|
||||
}.start()
|
||||
}
|
||||
|
||||
finish()
|
||||
true
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue