Skip to content

Commit

Permalink
更新裁剪库-new filename for each crop
Browse files Browse the repository at this point in the history
  • Loading branch information
Qixingchen committed Mar 21, 2023
1 parent 840be84 commit aa07472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/moe/xing/getimage/GetImageActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ private int getSubscriberID() {
private void toCorp(File image) {
File ans;
try {
ans = FileUtils.getCacheFile("corp-" + image.getName());
ans = FileUtils.getCacheFile("corp-" + System.currentTimeMillis() + "-" + image.getName());
UCrop.of(Uri.fromFile(image), Uri.fromFile(ans))
.withAspectRatio(getIntent().getIntExtra(CORP_WIDTH, 1), getIntent().getIntExtra(CORP_HEIGHT, 1))
.start(this);
Expand Down

0 comments on commit aa07472

Please sign in to comment.