mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-03-01 18:17:41 +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) {
|
override fun onCropImageComplete(view: CropImageView?, result: CropImageView.CropResult) {
|
||||||
|
if (isDestroyed)
|
||||||
|
return
|
||||||
|
|
||||||
if (result.error == null) {
|
if (result.error == null) {
|
||||||
toast(R.string.setting_wallpaper)
|
toast(R.string.setting_wallpaper)
|
||||||
Thread({
|
Thread({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user