save images in the editor on the background thread

This commit is contained in:
tibbi 2017-11-21 23:50:46 +01:00
parent b1a53c0e9c
commit 07d921330e

View file

@ -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)
}