mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add handling for recycle bin locking too
This commit is contained in:
@@ -257,15 +257,19 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun emptyRecycleBin() {
|
private fun emptyRecycleBin() {
|
||||||
activity.emptyTheRecycleBin {
|
activity.handleLockedFolderOpening(RECYCLE_BIN) {
|
||||||
listener?.refreshItems()
|
activity.emptyTheRecycleBin {
|
||||||
|
listener?.refreshItems()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun emptyAndDisableRecycleBin() {
|
private fun emptyAndDisableRecycleBin() {
|
||||||
activity.showRecycleBinEmptyingDialog {
|
activity.handleLockedFolderOpening(RECYCLE_BIN) {
|
||||||
activity.emptyAndDisableTheRecycleBin {
|
activity.showRecycleBinEmptyingDialog {
|
||||||
listener?.refreshItems()
|
activity.emptyAndDisableTheRecycleBin {
|
||||||
|
listener?.refreshItems()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user