Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多图裁剪后返回的图片路径相同问题 #2612

Closed
llllonger opened this issue Mar 8, 2023 · 0 comments
Closed

多图裁剪后返回的图片路径相同问题 #2612

llllonger opened this issue Mar 8, 2023 · 0 comments

Comments

@llllonger
Copy link

当前使用的版本:3.10.7
出现问题:多图裁剪的时候,出现图片重复问题

查看源码,UCropMultipleActivity里initCropFragments方法中设置fileName 如下:
String fileName = TextUtils.isEmpty(outputCropFileName) ? FileUtils.getCreateFileName("CROP_") + postfix
: FileUtils.getCreateFileName() + "_" + outputCropFileName;

getCreateFileName方法是时间戳到毫秒级别处理的,但是此处是一个for循环,会出现名称重复问题,
想问下这里是不是可以进行修改一下!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants