mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
make mPreview null at destroying MainActivity
This commit is contained in:
@ -109,6 +109,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
|
||||
super.onDestroy()
|
||||
mPreview?.releaseCamera()
|
||||
mPreview?.mActivity = null
|
||||
mPreview = null
|
||||
}
|
||||
|
||||
private fun initVariables() {
|
||||
|
Reference in New Issue
Block a user