delete the folder instantly at deleting the last photo in it

This commit is contained in:
tibbi 2016-03-06 14:53:07 +01:00
parent 304f6010da
commit 3f562513c0

View File

@ -120,6 +120,10 @@ public class ViewPagerActivity extends AppCompatActivity
snackbar.show(); snackbar.show();
isSnackbarShown = true; isSnackbarShown = true;
toBeDeleted = getCurrentFile().getAbsolutePath(); toBeDeleted = getCurrentFile().getAbsolutePath();
if (photos.size() == 1)
deleteFile();
else
reloadViewPager(); reloadViewPager();
} }