forked from mirrors/linphone-iphone
Chat: display call buttons correctly
This commit is contained in:
parent
8afb26c9da
commit
43cda13f4c
6 changed files with 9 additions and 4 deletions
|
|
@ -112,6 +112,7 @@
|
|||
<state key="highlighted" backgroundImage="color_E.png"/>
|
||||
<connections>
|
||||
<action selector="onBackToCallClick:" destination="-2" eventType="touchUpInside" id="bOG-ra-UpM"/>
|
||||
<outlet property="tableView" destination="8" id="w1i-Px-Wdf"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button hidden="YES" opaque="NO" tag="8" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="Wag-Nx-kd6" userLabel="deleteButton" customClass="UIIconButton">
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@
|
|||
<state key="highlighted" backgroundImage="color_E.png"/>
|
||||
<connections>
|
||||
<action selector="onBackToCallClick:" destination="-2" eventType="touchUpInside" id="eUD-Gk-qji"/>
|
||||
<outlet property="tableView" destination="6" id="ePS-cV-S6m"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" reversesTitleShadowWhenHighlighted="YES" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" id="uqG-2T-VOa" userLabel="toggleSelectionButton" customClass="UIIconButton">
|
||||
|
|
|
|||
|
|
@ -169,7 +169,8 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
- (void)callUpdateEvent:(NSNotification *)notif {
|
||||
_callButton.hidden = (linphone_core_get_current_call([LinphoneManager getLc]) != NULL);
|
||||
_callButton.hidden =
|
||||
(_tableController.isEditing || linphone_core_get_current_call([LinphoneManager getLc]) != NULL);
|
||||
}
|
||||
|
||||
- (void)update {
|
||||
|
|
@ -499,7 +500,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
- (IBAction)onEditionChangeClick:(id)sender {
|
||||
_backButton.hidden = _callButton.hidden = _tableController.isEditing;
|
||||
_backToCallButton.hidden |= _tableController.isEditing;
|
||||
[_backToCallButton update];
|
||||
}
|
||||
|
||||
- (IBAction)onCallClick:(id)sender {
|
||||
|
|
|
|||
|
|
@ -76,7 +76,8 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
- (IBAction)onEditionChangeClick:(id)sender {
|
||||
_addButton.hidden = _backToCallButton.hidden = self.tableController.isEditing;
|
||||
_addButton.hidden = self.tableController.isEditing;
|
||||
[_backToCallButton update];
|
||||
}
|
||||
|
||||
- (IBAction)onDeleteClick:(id)sender {
|
||||
|
|
|
|||
|
|
@ -13,4 +13,5 @@
|
|||
- (IBAction)onBackToCallClick:(id)sender;
|
||||
- (void)update;
|
||||
|
||||
@property(assign, nonatomic) IBOutlet UITableView *tableView;
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
|
||||
- (void)update {
|
||||
self.hidden |= (linphone_core_get_current_call([LinphoneManager getLc]) == NULL);
|
||||
self.hidden = (_tableView.isEditing || linphone_core_get_current_call([LinphoneManager getLc]) == NULL);
|
||||
}
|
||||
|
||||
- (IBAction)onBackToCallClick:(id)sender {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue