mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
add an extra check to avoid deleting folders from viewpageractivity
This commit is contained in:
parent
348d5617e0
commit
071794a693
@ -933,6 +933,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
|
||||
private fun deleteConfirmed() {
|
||||
val path = getCurrentMedia().getOrNull(mPos)?.path ?: return
|
||||
if (getIsPathDirectory(path)) {
|
||||
return
|
||||
}
|
||||
|
||||
val fileDirItem = FileDirItem(path, path.getFilenameFromPath())
|
||||
if (config.useRecycleBin && !getCurrentMedium()!!.getIsInRecycleBin()) {
|
||||
movePathsInRecycleBin(arrayListOf(path)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user