mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-16 12:00:40 -04:00
use a background thread for closing the camera on pause
This commit is contained in:
@@ -99,7 +99,10 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener {
|
||||
if (mPreview?.getCameraState() == STATE_PICTURE_TAKEN) {
|
||||
toast(R.string.photo_not_saved)
|
||||
}
|
||||
mPreview?.onPaused()
|
||||
|
||||
ensureBackgroundThread {
|
||||
mPreview?.onPaused()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user