mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-23 20:00:43 +01:00
fix a crash at closing the app right after taking a photo
This commit is contained in:
parent
5409038007
commit
824685258e
@ -363,7 +363,9 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
||||
mPreviewUri = Uri.withAppendedPath(uri, lastMediaId.toString())
|
||||
|
||||
runOnUiThread {
|
||||
Glide.with(this).load(mPreviewUri).centerCrop().diskCacheStrategy(DiskCacheStrategy.NONE).crossFade().into(last_photo_video_preview)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && !isDestroyed) {
|
||||
Glide.with(this).load(mPreviewUri).centerCrop().diskCacheStrategy(DiskCacheStrategy.NONE).crossFade().into(last_photo_video_preview)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user