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

图片误删 #2567

Closed
CAnonymous8 opened this issue Dec 19, 2022 · 2 comments
Closed

图片误删 #2567

CAnonymous8 opened this issue Dec 19, 2022 · 2 comments

Comments

@CAnonymous8
Copy link

背景: 用的是自定义相机, 拍照1张, 再拍第二张不点确定, 点击返回;

PictureCommonFragment ->onActivityResult : MediaUtils.deleteUri(getAppContext(), config.cameraPath); 误删了上一张照片
image

image

@LuckSiege
Copy link
Owner

下版本已修复

@CAnonymous8
Copy link
Author

CAnonymous8 commented Jan 17, 2023

还有引入的压缩框架, 压缩路径这写法是有问题的, 外部存储不可用 时 就是 null 了, 线上少部分会出现null 报错,应该要在demo 特殊说明, 或者改 用内部getCacheDir 路径; 注意 setTargetDir 路径 :if(! file.exists() ){file.mkdirs() }

image

image

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