Skip to content

Commit

Permalink
remove unused imageType parameter, because it's a private API anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Oct 28, 2024
1 parent 3617e39 commit 9d0681a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ else if (destType == FILE_URI) {
throw new IllegalStateException();
}

this.cleanup(FILE_URI, this.imageUri, galleryUri, bitmap);
this.cleanup(this.imageUri, galleryUri, bitmap);
bitmap = null;
input.close();
}
Expand Down Expand Up @@ -1199,9 +1199,9 @@ public static int calculateSampleSize(int srcWidth, int srcHeight, int dstWidth,
/**
* Cleans up after picture taking. Checking for duplicates and that kind of stuff.
*
* @param newImage - No longer used
* @param newImage
*/
private void cleanup(int imageType, Uri oldImage, Uri newImage, Bitmap bitmap) {
private void cleanup(Uri oldImage, Uri newImage, Bitmap bitmap) {
if (bitmap != null) {
bitmap.recycle();
}
Expand Down

0 comments on commit 9d0681a

Please sign in to comment.