Skip to content

Commit

Permalink
fix: proximity sensor keeps turning the screen off even when there is…
Browse files Browse the repository at this point in the history
… no call
  • Loading branch information
ohassine committed May 28, 2024
1 parent ab94b35 commit bf4737a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class ProximitySensorManager @Inject constructor(
}

fun unRegisterListener() {
if (wakeLock.isHeld) {
wakeLock.release()
}
sensorManager.unregisterListener(sensorEventListener)
}

Expand Down

0 comments on commit bf4737a

Please sign in to comment.