Skip to content

Commit

Permalink
Closes #91
Browse files Browse the repository at this point in the history
Merge branch 'fix/delete-photo' into develop

* fix/delete-photo:
  Deletes the photo file when deleting photo
  • Loading branch information
7LPdWcaW committed Jun 29, 2019
2 parents 7a17491 + 40f9569 commit b506dd3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public static ViewPhotosFragment newInstance(int plantIndex)
for (Integer integer : adapter.getSelected())
{
String image = adapter.getImages().get(integer);
new File(image).delete();
plant.getImages().remove(image);
AddonHelper.broadcastImage(getActivity(), image, true);
}
Expand Down

0 comments on commit b506dd3

Please sign in to comment.