Commit 0241a10b authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

UI: do not lock screen during call

Change-Id: Iaf63238500c7e1d26b1fd929b2704fb55f97529e
parent 77c737a9
......@@ -124,6 +124,7 @@ class CallViewController: UIViewController, StoryboardBased, ViewModelBased {
UIDevice.current.isProximityMonitoringEnabled = self.viewModel.isAudioOnly
initCallAnimation()
UIApplication.shared.isIdleTimerDisabled = true
}
@objc func capturedVideoSwipped(gesture: UISwipeGestureRecognizer) {
......@@ -459,6 +460,7 @@ class CallViewController: UIViewController, StoryboardBased, ViewModelBased {
task?.cancel()
}
UIDevice.current.isProximityMonitoringEnabled = false
UIApplication.shared.isIdleTimerDisabled = false
self.dismiss(animated: false)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment