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 (WPB-9215) (#3045)
  • Loading branch information
ohassine authored and github-actions[bot] committed May 29, 2024
1 parent f95ed2b commit 20640d8
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 20640d8

Please sign in to comment.