forked from mirrors/linphone-iphone
reset search cache when needed
This commit is contained in:
parent
42b09ad3ef
commit
39048ab01f
1 changed files with 3 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ typedef enum { ContactsAll, ContactsLinphone, ContactsMAX } ContactsCategory;
|
|||
|
||||
- (void)changeView:(ContactsCategory)view {
|
||||
CGRect frame = _selectedButtonImage.frame;
|
||||
if (_tableController.magicSearch)
|
||||
linphone_magic_search_reset_search_cache(_tableController.magicSearch);
|
||||
|
||||
if (view == ContactsAll && !_allButton.selected) {
|
||||
frame.origin.x = _allButton.frame.origin.x;
|
||||
_allButton.selected = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue