fix: 不再删除源文件
This commit is contained in:
parent
12469bb6f0
commit
29c8c00d0f
@ -462,9 +462,9 @@ class ObtainMessageFragment : Fragment() {
|
|||||||
override fun onSuccess(file: File?) {
|
override fun onSuccess(file: File?) {
|
||||||
XLog.d("压缩图片成功:${file?.absolutePath}")
|
XLog.d("压缩图片成功:${file?.absolutePath}")
|
||||||
// 删除源文件
|
// 删除源文件
|
||||||
if (!it.absolutePath.equals(file?.absolutePath)) {
|
// if (!it.absolutePath.equals(file?.absolutePath)) {
|
||||||
it?.delete()
|
// it?.delete()
|
||||||
}
|
// }
|
||||||
// 如果当前文件不在camera缓存文件夹下,则移动该文件
|
// 如果当前文件不在camera缓存文件夹下,则移动该文件
|
||||||
if (!file!!.parentFile.absolutePath.equals(SystemConstant.CameraFolder)) {
|
if (!file!!.parentFile.absolutePath.equals(SystemConstant.CameraFolder)) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user