From d02df3bd4d95dfc07f7c652b65c3442c53f900a9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 5 May 2017 11:37:47 +0200 Subject: [PATCH] make the preview at orientation change listener nullable --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 37d2f9c3..b711ff2b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -502,7 +502,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave else -> 0 } - mPreview!!.deviceOrientationChanged() + mPreview?.deviceOrientationChanged() animateViews(degrees) mLastHandledOrientation = currOrient }