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) 🍒 (#3052)

Co-authored-by: Oussama Hassine <[email protected]>
  • Loading branch information
github-actions[bot] and ohassine authored May 29, 2024
1 parent ac41864 commit d6cdb11
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 d6cdb11

Please sign in to comment.