remove the Recycle Bin folder from the database right away at restoring all items
This commit is contained in:
parent
e44299a472
commit
cf716f901e
|
@ -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 New Issue