forked from mirrors/linphone-iphone
fix speaker button behavior
This commit is contained in:
parent
49a2537826
commit
63049d2fc7
1 changed files with 3 additions and 3 deletions
|
|
@ -667,8 +667,8 @@ void addAnimationFadeTransition(UIView* view, float duration) {
|
|||
dismissed = false;
|
||||
UIDevice *device = [UIDevice currentDevice];
|
||||
device.proximityMonitoringEnabled = YES;
|
||||
if ([speaker isOn])
|
||||
[speaker toggle];
|
||||
//if ([speaker isOn])
|
||||
// [speaker toggle];
|
||||
[self updateUIFromLinphoneState: YES];
|
||||
}
|
||||
|
||||
|
|
@ -681,7 +681,7 @@ void addAnimationFadeTransition(UIView* view, float duration) {
|
|||
UIDevice *device = [UIDevice currentDevice];
|
||||
device.proximityMonitoringEnabled = YES;
|
||||
if (call !=nil && linphone_call_get_dir(call)==LinphoneCallIncoming) {
|
||||
if ([speaker isOn]) [speaker toggle];
|
||||
//if ([speaker isOn]) [speaker toggle];
|
||||
}
|
||||
[self updateUIFromLinphoneState: YES];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue