mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
use a background thread for closing the camera on pause
This commit is contained in:
@ -99,8 +99,11 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener {
|
||||
if (mPreview?.getCameraState() == STATE_PICTURE_TAKEN) {
|
||||
toast(R.string.photo_not_saved)
|
||||
}
|
||||
|
||||
ensureBackgroundThread {
|
||||
mPreview?.onPaused()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
|
Reference in New Issue
Block a user