diff --git a/fotoapparat/src/main/java/io/fotoapparat/hardware/orientation/RotationListener.kt b/fotoapparat/src/main/java/io/fotoapparat/hardware/orientation/RotationListener.kt index a566504a..f058a074 100644 --- a/fotoapparat/src/main/java/io/fotoapparat/hardware/orientation/RotationListener.kt +++ b/fotoapparat/src/main/java/io/fotoapparat/hardware/orientation/RotationListener.kt @@ -13,7 +13,7 @@ internal open class RotationListener( lateinit var orientationChanged: (DeviceRotationDegrees) -> Unit override fun onOrientationChanged(orientation: DeviceRotationDegrees) { - if (canDetectOrientation()) { + if (canDetectOrientation() && orientation != ORIENTATION_UNKNOWN) { orientationChanged(orientation) } }