Skip to content

Commit

Permalink
fix nullability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkaifan0720 committed Oct 22, 2024
1 parent 2aa4435 commit 0f55b11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal class GyroscopeStreamHandler(
) : EventChannel.StreamHandler {
private var sensorEventListener: SensorEventListener? = null

private val sensor: Sensor by lazy {
private val sensor: Sensor? by lazy {
sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)
}

Expand Down

0 comments on commit 0f55b11

Please sign in to comment.