Skip to content

Commit

Permalink
Avoid double-storing photos taken by QField when using the native camera
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jun 30, 2024
1 parent cf49484 commit d387277
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/android/src/ch/opengis/qfield/QFieldActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,7 @@ protected void onActivityResult(int requestCode, int resultCode,
InputStream in = new FileInputStream(file);
QFieldUtils.inputStreamToFile(in, result.getPath(),
file.length());
file.delete();
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

1 comment on commit d387277

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.