mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-29 07:57:59 +01:00
delete the folder instantly at deleting the last photo in it
This commit is contained in:
parent
304f6010da
commit
3f562513c0
1 changed files with 5 additions and 1 deletions
|
@ -120,7 +120,11 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||||
snackbar.show();
|
snackbar.show();
|
||||||
isSnackbarShown = true;
|
isSnackbarShown = true;
|
||||||
toBeDeleted = getCurrentFile().getAbsolutePath();
|
toBeDeleted = getCurrentFile().getAbsolutePath();
|
||||||
reloadViewPager();
|
|
||||||
|
if (photos.size() == 1)
|
||||||
|
deleteFile();
|
||||||
|
else
|
||||||
|
reloadViewPager();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void deleteFile() {
|
private void deleteFile() {
|
||||||
|
|
Loading…
Reference in a new issue