diff --git a/app/src/main/kotlin/d/d/meshenger/call/RTCProximitySensor.kt b/app/src/main/kotlin/d/d/meshenger/call/RTCProximitySensor.kt index d13c9692e..03bc8e478 100644 --- a/app/src/main/kotlin/d/d/meshenger/call/RTCProximitySensor.kt +++ b/app/src/main/kotlin/d/d/meshenger/call/RTCProximitySensor.kt @@ -66,6 +66,7 @@ class RTCProximitySensor(context: Context) : SensorEventListener { /** Deactivate the proximity sensor. */ fun stop() { threadChecker.checkIsOnValidThread() + onSensorStateListeners.clear() Log.d(this, "stop() ${Utils.getThreadInfo()}") if (proximitySensor != null) { Log.d(this, "stop() unregisterListener")