mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-20 05:50:36 +01:00
add an extra check to remove the empty "Favorites" folder if necessary
This commit is contained in:
parent
624a0d5ca3
commit
b93ab89731
@ -572,6 +572,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
|||||||
deleteDirectoryIfEmpty()
|
deleteDirectoryIfEmpty()
|
||||||
deleteDBDirectory()
|
deleteDBDirectory()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mPath == FAVORITES) {
|
||||||
|
Thread {
|
||||||
|
galleryDB.DirectoryDao().deleteDirPath(FAVORITES)
|
||||||
|
}.start()
|
||||||
|
}
|
||||||
|
|
||||||
finish()
|
finish()
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user