diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java index e0ff521c9..c02ac2347 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java @@ -120,7 +120,11 @@ public class ViewPagerActivity extends AppCompatActivity snackbar.show(); isSnackbarShown = true; toBeDeleted = getCurrentFile().getAbsolutePath(); - reloadViewPager(); + + if (photos.size() == 1) + deleteFile(); + else + reloadViewPager(); } private void deleteFile() {