mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-15 15:57:25 +02:00
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…
x
Reference in New Issue
Block a user