Skip to content

Commit

Permalink
hotfix: catch RecoverableSecurityException
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWiesner committed Dec 7, 2021
1 parent 66974ef commit 660d722
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/android/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,12 @@ private void checkForDuplicateImage(int type) {
id--;
}
Uri uri = Uri.parse(contentStore + "/" + id);
this.cordova.getActivity().getContentResolver().delete(uri, null, null);
// FIXME catch RecoverableSecurityException for now
try {
this.cordova.getActivity().getContentResolver().delete(uri, null, null);
} catch (java.lang.Exception e){
// Ignore exception
}
}
cursor.close();
}
Expand Down

0 comments on commit 660d722

Please sign in to comment.