mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-05 22:03:25 +01:00
check if the activity is still alive after cropping for wallpaper
This commit is contained in:
parent
86c2499345
commit
d80a0db3cb
@ -66,6 +66,9 @@ class SetWallpaperActivity : SimpleActivity(), CropImageView.OnCropImageComplete
|
||||
}
|
||||
|
||||
override fun onCropImageComplete(view: CropImageView?, result: CropImageView.CropResult) {
|
||||
if (isDestroyed)
|
||||
return
|
||||
|
||||
if (result.error == null) {
|
||||
toast(R.string.setting_wallpaper)
|
||||
Thread({
|
||||
|
Loading…
x
Reference in New Issue
Block a user