mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-18 04:50:36 +01:00
fix #1461, avoid a glitch at rotated pngs getting deleted
This commit is contained in:
parent
54e5cb2c14
commit
44014ef44a
@ -431,10 +431,6 @@ fun BaseSimpleActivity.saveRotatedImageToFile(oldPath: String, newPath: String,
|
||||
saveFile(tmpPath, bitmap, it as FileOutputStream, newDegrees)
|
||||
}
|
||||
|
||||
if (File(newPath).exists()) {
|
||||
tryDeleteFileDirItem(FileDirItem(newPath, newPath.getFilenameFromPath()), false, true)
|
||||
}
|
||||
|
||||
copyFile(tmpPath, newPath)
|
||||
rescanPaths(arrayListOf(newPath))
|
||||
fileRotatedSuccessfully(newPath, oldLastModified)
|
||||
|
Loading…
x
Reference in New Issue
Block a user