mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57: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() {
|
private fun restoreAllFiles() {
|
||||||
val paths = mMedia.filter { it is Medium }.map { (it as Medium).path } as ArrayList<String>
|
val paths = mMedia.filter { it is Medium }.map { (it as Medium).path } as ArrayList<String>
|
||||||
restoreRecycleBinPaths(paths) {
|
restoreRecycleBinPaths(paths) {
|
||||||
|
Thread {
|
||||||
|
galleryDB.DirectoryDao().deleteDirPath(RECYCLE_BIN)
|
||||||
|
}.start()
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue