add handling for recycle bin locking too

This commit is contained in:
tibbi 2019-07-02 21:20:00 +02:00
parent 4d3d7eaf3f
commit 3b2d9322fd

View file

@ -257,15 +257,19 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
}
private fun emptyRecycleBin() {
activity.emptyTheRecycleBin {
listener?.refreshItems()
activity.handleLockedFolderOpening(RECYCLE_BIN) {
activity.emptyTheRecycleBin {
listener?.refreshItems()
}
}
}
private fun emptyAndDisableRecycleBin() {
activity.showRecycleBinEmptyingDialog {
activity.emptyAndDisableTheRecycleBin {
listener?.refreshItems()
activity.handleLockedFolderOpening(RECYCLE_BIN) {
activity.showRecycleBinEmptyingDialog {
activity.emptyAndDisableTheRecycleBin {
listener?.refreshItems()
}
}
}
}