diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index c32ea4af9..457d08458 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -212,9 +212,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View file.delete() } - val deleted = deleteFromMediaStore(file) - - if (deleted) { + if (deleteFromMediaStore(file)) { reloadViewPager() } else { scanFile(file) {