fix saving path

This commit is contained in:
kosyak 2023-06-29 11:11:06 +03:00 committed by Konstantin Aleksashin
parent 21e6f4f023
commit 847ef66216

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(filesDir, "Images/${UUID.randomUUID()}.jpg")
file.deleteRecursively()
file.parentFile?.mkdirs()