mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Turn off screen when held to ear
// FREEBIE
This commit is contained in:
parent
61a3765cf7
commit
5ec8a24d34
1 changed files with 3 additions and 1 deletions
|
@ -123,13 +123,15 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R
|
|||
override func viewDidDisappear(_ animated: Bool) {
|
||||
super.viewDidDisappear(animated)
|
||||
|
||||
UIDevice.current.isProximityMonitoringEnabled = false
|
||||
|
||||
callDurationTimer?.invalidate()
|
||||
callDurationTimer = nil
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
UIDevice.current.isProximityMonitoringEnabled = true
|
||||
updateCallUI(callState: call.state)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue