fix: 不再删除源文件

This commit is contained in:
xiaoyan 2023-01-13 14:45:37 +08:00
parent 12469bb6f0
commit 29c8c00d0f

View File

@ -462,9 +462,9 @@ class ObtainMessageFragment : Fragment() {
override fun onSuccess(file: File?) {
XLog.d("压缩图片成功:${file?.absolutePath}")
// 删除源文件
if (!it.absolutePath.equals(file?.absolutePath)) {
it?.delete()
}
// if (!it.absolutePath.equals(file?.absolutePath)) {
// it?.delete()
// }
// 如果当前文件不在camera缓存文件夹下则移动该文件
if (!file!!.parentFile.absolutePath.equals(SystemConstant.CameraFolder)) {
try {