From 9c9d1fff794f6f808f1f0de80ca28855ec01e4bf Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 18 Jan 2016 14:09:47 +0100 Subject: [PATCH] outgoing call: refresh mute/speaker buttons --- Classes/Base.lproj/CallIncomingView.xib | 4 ++-- Classes/Base.lproj/CallOutgoingView.xib | 1 + Classes/CallOutgoingView.h | 1 + Classes/CallOutgoingView.m | 4 ++++ linphone_Prefix.pch | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Classes/Base.lproj/CallIncomingView.xib b/Classes/Base.lproj/CallIncomingView.xib index e18d31111..396c20878 100644 --- a/Classes/Base.lproj/CallIncomingView.xib +++ b/Classes/Base.lproj/CallIncomingView.xib @@ -148,7 +148,7 @@ - + @@ -281,7 +281,7 @@ - + diff --git a/Classes/Base.lproj/CallOutgoingView.xib b/Classes/Base.lproj/CallOutgoingView.xib index a11c9f463..12030996d 100644 --- a/Classes/Base.lproj/CallOutgoingView.xib +++ b/Classes/Base.lproj/CallOutgoingView.xib @@ -10,6 +10,7 @@ + diff --git a/Classes/CallOutgoingView.h b/Classes/CallOutgoingView.h index 94c65d56d..5ad6a1504 100644 --- a/Classes/CallOutgoingView.h +++ b/Classes/CallOutgoingView.h @@ -35,6 +35,7 @@ @property(weak, nonatomic) IBOutlet UIBluetoothButton *routesBluetoothButton; @property(weak, nonatomic) IBOutlet UIButton *routesEarpieceButton; @property(weak, nonatomic) IBOutlet UISpeakerButton *routesSpeakerButton; +@property(weak, nonatomic) IBOutlet UIMicroButton *microButton; - (IBAction)onDeclineClick:(id)sender; diff --git a/Classes/CallOutgoingView.m b/Classes/CallOutgoingView.m index 141b363a7..3efe75470 100644 --- a/Classes/CallOutgoingView.m +++ b/Classes/CallOutgoingView.m @@ -66,6 +66,10 @@ static UICompositeViewDescription *compositeDescription = nil; } [self hideSpeaker:LinphoneManager.instance.bluetoothAvailable]; + + [_speakerButton update]; + [_microButton update]; + [_routesButton update]; } - (void)viewWillDisappear:(BOOL)animated { diff --git a/linphone_Prefix.pch b/linphone_Prefix.pch index eebc8998b..7bc9a548d 100644 --- a/linphone_Prefix.pch +++ b/linphone_Prefix.pch @@ -13,5 +13,6 @@ #import "UIToggleButton.h" #import "UISpeakerButton.h" #import "UIBluetoothButton.h" +#import "UIMicroButton.h" #import "UIChatBubbleTextCell.h"