diff --git a/app/build.gradle b/app/build.gradle index e2c5c58e..915bac3e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,7 +46,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.0.20' + implementation 'com.simplemobiletools:commons:3.0.22' debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index 15312dab..d8f84661 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -109,6 +109,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave super.onDestroy() mPreview?.releaseCamera() mPreview?.mActivity = null + mPreview = null } private fun initVariables() {