mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Optimization + fix previous commit
This commit is contained in:
parent
9feb13682f
commit
1efd76a60c
5 changed files with 9 additions and 7 deletions
|
|
@ -56,9 +56,7 @@
|
|||
- (void)dealloc {
|
||||
ABAddressBookUnregisterExternalChangeCallback(addressBook, sync_address_book, self);
|
||||
CFRelease(addressBook);
|
||||
[addressBookMap removeAllObjects];
|
||||
[addressBookMap release];
|
||||
[avatarMap removeAllObjects];
|
||||
[avatarMap release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
@ -72,7 +70,6 @@
|
|||
|
||||
// Reset Address book
|
||||
[addressBookMap removeAllObjects];
|
||||
[avatarMap removeAllObjects];
|
||||
|
||||
NSArray *lContacts = (NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBook);
|
||||
for (id lPerson in lContacts) {
|
||||
|
|
@ -142,6 +139,7 @@
|
|||
static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef info, void *context) {
|
||||
ContactsTableViewController* controller = (ContactsTableViewController*)context;
|
||||
ABAddressBookRevert(addressBook);
|
||||
[controller->avatarMap removeAllObjects];
|
||||
[controller loadData];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -220,6 +220,11 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
#pragma mark - UITextFieldDelegate Functions
|
||||
|
||||
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
|
||||
//[textField performSelector:@selector() withObject:nil afterDelay:0];
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
|
||||
if (textField == addressField) {
|
||||
[addressField resignFirstResponder];
|
||||
|
|
|
|||
|
|
@ -606,7 +606,6 @@
|
|||
<string key="NSFrame">{{214, 0}, {106, 69}}</string>
|
||||
<reference key="NSSuperview" ref="32193173"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
UITapGestureRecognizer* singleFingerTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showControls:)];
|
||||
[singleFingerTap setNumberOfTapsRequired:1];
|
||||
[singleFingerTap setCancelsTouchesInView: FALSE];
|
||||
[[[UIApplication sharedApplication].delegate window] addGestureRecognizer:singleFingerTap];
|
||||
[[PhoneMainView instance].view addGestureRecognizer:singleFingerTap];
|
||||
[singleFingerTap release];
|
||||
|
||||
videoZoomHandler = [[VideoZoomHandler alloc] init];
|
||||
|
|
@ -516,7 +516,7 @@ static void hideSpinner(LinphoneCall* call, void* user_data) {
|
|||
otherButtonTitles:nil];
|
||||
|
||||
visibleActionSheet.actionSheetStyle = UIActionSheetStyleDefault;
|
||||
[visibleActionSheet showInView:[[UIApplication sharedApplication].delegate window]];
|
||||
[visibleActionSheet showInView:[PhoneMainView instance].view];
|
||||
|
||||
/* start cancel timer */
|
||||
cd.timeout = [NSTimer scheduledTimerWithTimeInterval:30 target:self selector:@selector(dismissActionSheet:) userInfo:nil repeats:NO];
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit e93d9096ff433d3195c177e4c767881406e71d88
|
||||
Subproject commit c97efee37aea1ccae3c476a108e988e47f38faa4
|
||||
Loading…
Add table
Reference in a new issue