mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-20 05:50:36 +01:00
make sure only media files get deleted from the viewpager activity
This commit is contained in:
parent
007d972787
commit
92718e5666
@ -922,7 +922,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||||||
|
|
||||||
private fun deleteConfirmed() {
|
private fun deleteConfirmed() {
|
||||||
val path = getCurrentMedia().getOrNull(mPos)?.path ?: return
|
val path = getCurrentMedia().getOrNull(mPos)?.path ?: return
|
||||||
if (getIsPathDirectory(path)) {
|
if (getIsPathDirectory(path) || !path.isImageVideoGif()) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user