1
0
Fork 1

Fix edited image not openable

This commit is contained in:
Arne 2024-12-02 12:35:38 +01:00
parent ea590705e9
commit 56efb8eaf5

View file

@ -678,7 +678,7 @@ class EditActivity : AppCompatActivity(), CropImageView.OnCropImageCompleteListe
}
private fun saveBitmapToFile(bitmap: Bitmap, showSavingToast: Boolean) {
val file = File(cacheDir, "editedImages/${UUID.randomUUID()}.jpg")
val file = File(cacheDir, "media/${UUID.randomUUID()}.jpg")
file.deleteRecursively()
file.parentFile?.mkdirs()