Skip to content

Commit

Permalink
Update Utils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTomAlx authored Apr 10, 2020
1 parent 314c0d6 commit 87a481c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/com/scanlibrary/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ private Utils() {
public static Uri getUri(Context context, Bitmap bitmap) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, "Title", null);
MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, "Title" + " - " + Calendar.getInstance().getTime(), null);
// String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, "Title", null);
String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, "Title" + " - " + Calendar.getInstance().getTime(), null);
return Uri.parse(path);
}

Expand Down

0 comments on commit 87a481c

Please sign in to comment.