forked from organicmaps/organicmaps
[fix] [ios] Workaround for reload with outdated SearchIndex.
This commit is contained in:
parent
106083717a
commit
54143ac26e
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@
|
|||
- (UITableViewCell *)tableView:(UITableView *)tableView
|
||||
cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
if ([MWMSearch resultsCount] == 0)
|
||||
{
|
||||
NSAssert(false, @"Invalid reload with outdated SearchIndex");
|
||||
return [tableView dequeueReusableCellWithCellClass:[MWMSearchCommonCell class] indexPath:indexPath];
|
||||
}
|
||||
auto const row = indexPath.row;
|
||||
auto const containerIndex = [MWMSearch containerIndexWithRow:row];
|
||||
switch ([MWMSearch resultTypeWithRow:row])
|
||||
|
|
Loading…
Add table
Reference in a new issue