make the preview at orientation change listener nullable

This commit is contained in:
tibbi 2017-05-05 11:37:47 +02:00
parent c1ea435343
commit d02df3bd4d
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
else -> 0
}
mPreview!!.deviceOrientationChanged()
mPreview?.deviceOrientationChanged()
animateViews(degrees)
mLastHandledOrientation = currOrient
}