From 07d921330ef7eb6653ffdb68864050083cb9269e Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 21 Nov 2017 23:50:46 +0100 Subject: [PATCH] save images in the editor on the background thread --- .../com/simplemobiletools/gallery/activities/EditActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 53c278d5e..5b62357ab 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -172,7 +172,9 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener try { getFileOutputStream(file) { if (it != null) { - saveBitmap(file, bitmap, it) + Thread { + saveBitmap(file, bitmap, it) + }.start() } else { toast(R.string.image_editing_failed) }