UIPauseButton.m: disable pause button if ICE is in progress

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-15 16:19:53 +01:00
parent 4477faf01c
commit 28c6101de1

View file

@ -152,7 +152,8 @@
if (c != nil) {
LinphoneCallState state = linphone_call_get_state(c);
ret = (state == LinphoneCallPaused || state == LinphoneCallPausing);
self.enabled = (state == LinphoneCallPaused || state == LinphoneCallPausing ||
self.enabled = !linphone_call_media_in_progress(c) &&
(state == LinphoneCallPaused || state == LinphoneCallPausing ||
state == LinphoneCallStreamsRunning);
} else {
self.enabled = FALSE;