make the preview at orientation change listener nullable
This commit is contained in:
parent
c1ea435343
commit
d02df3bd4d
|
@ -502,7 +502,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
|
||||||
else -> 0
|
else -> 0
|
||||||
}
|
}
|
||||||
|
|
||||||
mPreview!!.deviceOrientationChanged()
|
mPreview?.deviceOrientationChanged()
|
||||||
animateViews(degrees)
|
animateViews(degrees)
|
||||||
mLastHandledOrientation = currOrient
|
mLastHandledOrientation = currOrient
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue