mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-21 14:30:35 +01:00
add handling for recycle bin locking too
This commit is contained in:
parent
4d3d7eaf3f
commit
3b2d9322fd
@ -257,18 +257,22 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
||||
}
|
||||
|
||||
private fun emptyRecycleBin() {
|
||||
activity.handleLockedFolderOpening(RECYCLE_BIN) {
|
||||
activity.emptyTheRecycleBin {
|
||||
listener?.refreshItems()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun emptyAndDisableRecycleBin() {
|
||||
activity.handleLockedFolderOpening(RECYCLE_BIN) {
|
||||
activity.showRecycleBinEmptyingDialog {
|
||||
activity.emptyAndDisableTheRecycleBin {
|
||||
listener?.refreshItems()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateFolderNames() {
|
||||
val includedFolders = activity.config.includedFolders
|
||||
|
Loading…
x
Reference in New Issue
Block a user