From 847ef66216d708c635f544e345d069684b9bee84 Mon Sep 17 00:00:00 2001 From: kosyak Date: Thu, 29 Jun 2023 11:11:06 +0300 Subject: [PATCH] fix saving path --- .../eu/siacs/conversations/medialib/activities/EditActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/medialib/activities/EditActivity.kt b/src/main/java/eu/siacs/conversations/medialib/activities/EditActivity.kt index 0267af53e..09fc73c48 100644 --- a/src/main/java/eu/siacs/conversations/medialib/activities/EditActivity.kt +++ b/src/main/java/eu/siacs/conversations/medialib/activities/EditActivity.kt @@ -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()