mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
remove the Recycle Bin folder from the database right away at restoring all items
This commit is contained in:
parent
e44299a472
commit
cf716f901e
1 changed files with 3 additions and 0 deletions
|
@ -444,6 +444,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
private fun restoreAllFiles() {
|
||||
val paths = mMedia.filter { it is Medium }.map { (it as Medium).path } as ArrayList<String>
|
||||
restoreRecycleBinPaths(paths) {
|
||||
Thread {
|
||||
galleryDB.DirectoryDao().deleteDirPath(RECYCLE_BIN)
|
||||
}.start()
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue