mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
update speaker button when audio route changes
This commit is contained in:
parent
e8368aa71a
commit
a0d959dd3a
1 changed files with 1 additions and 7 deletions
|
|
@ -42,13 +42,7 @@ INIT_WITH_COMMON_CF {
|
|||
#pragma mark - UIToggleButtonDelegate Functions
|
||||
|
||||
- (void)audioRouteChangeListenerCallback:(NSNotification *)notif {
|
||||
#pragma deploymate push "ignored-api-availability"
|
||||
if (UIDevice.currentDevice.systemVersion.doubleValue < 7 ||
|
||||
[[notif.userInfo valueForKey:AVAudioSessionRouteChangeReasonKey] integerValue] ==
|
||||
AVAudioSessionRouteChangeReasonRouteConfigurationChange) {
|
||||
[self update];
|
||||
}
|
||||
#pragma deploymate pop
|
||||
[self update];
|
||||
}
|
||||
|
||||
- (void)onOn {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue