keep fixing UI

This commit is contained in:
Benjamin Reis 2017-12-01 15:49:05 +01:00
parent ff4833b865
commit 7c253eb0ad
3 changed files with 9 additions and 6 deletions

View file

@ -71,7 +71,10 @@
} }
- (void)reloadDataWithFilter:(NSString *)filter { - (void)reloadDataWithFilter:(NSString *)filter {
if (_contacts)
[_contacts removeAllObjects]; [_contacts removeAllObjects];
else
_contacts = [[NSMutableDictionary alloc] initWithCapacity:_allContacts.count];
[_allContacts enumerateKeysAndObjectsUsingBlock:^(id key, id value, BOOL *stop) { [_allContacts enumerateKeysAndObjectsUsingBlock:^(id key, id value, BOOL *stop) {
NSString *address = (NSString *)key; NSString *address = (NSString *)key;

View file

@ -74,6 +74,10 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated]; [super viewWillAppear:animated];
_waitView.hidden = YES; _waitView.hidden = YES;
if (_create)
_room = NULL;
_nameLabel.text = _room && linphone_chat_room_get_subject(_room) _nameLabel.text = _room && linphone_chat_room_get_subject(_room)
? [NSString stringWithUTF8String:linphone_chat_room_get_subject(_room)] ? [NSString stringWithUTF8String:linphone_chat_room_get_subject(_room)]
: @""; : @"";
@ -112,10 +116,6 @@ static UICompositeViewDescription *compositeDescription = nil;
[_tableView reloadData]; [_tableView reloadData];
} }
- (void)viewWillDisappear:(BOOL)animated {
_room = NULL;
}
#pragma mark - next functions #pragma mark - next functions
- (void)onCreate { - (void)onCreate {

@ -1 +1 @@
Subproject commit eb3fbf682d8d177807c84aaa4aecd869dc755fde Subproject commit 47cf1d436cdfff29a7b3cb0a4cbfc3a758d78240