mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
fix #1424, delete empty folders when appropriate
This commit is contained in:
parent
54e91dac7a
commit
e9cee05b9d
1 changed files with 2 additions and 0 deletions
|
@ -920,6 +920,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
if (it) {
|
||||
tryDeleteFileDirItem(fileDirItem, false, false) {
|
||||
mIgnoredPaths.remove(fileDirItem.path)
|
||||
deleteDirectoryIfEmpty()
|
||||
}
|
||||
} else {
|
||||
toast(R.string.unknown_error_occurred)
|
||||
|
@ -939,6 +940,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
|
||||
tryDeleteFileDirItem(fileDirItem, false, true) {
|
||||
mIgnoredPaths.remove(fileDirItem.path)
|
||||
deleteDirectoryIfEmpty()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue