mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-02 20:46:44 +01:00
save images in the editor on the background thread
This commit is contained in:
parent
b1a53c0e9c
commit
07d921330e
@ -172,7 +172,9 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||||||
try {
|
try {
|
||||||
getFileOutputStream(file) {
|
getFileOutputStream(file) {
|
||||||
if (it != null) {
|
if (it != null) {
|
||||||
saveBitmap(file, bitmap, it)
|
Thread {
|
||||||
|
saveBitmap(file, bitmap, it)
|
||||||
|
}.start()
|
||||||
} else {
|
} else {
|
||||||
toast(R.string.image_editing_failed)
|
toast(R.string.image_editing_failed)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user