Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'iphone/Maps/UI/Search/TabbedView/MWMSearchTabbedViewController.mm')
-rw-r--r--iphone/Maps/UI/Search/TabbedView/MWMSearchTabbedViewController.mm7
1 files changed, 2 insertions, 5 deletions
diff --git a/iphone/Maps/UI/Search/TabbedView/MWMSearchTabbedViewController.mm b/iphone/Maps/UI/Search/TabbedView/MWMSearchTabbedViewController.mm
index 3516c6c735..9250897943 100644
--- a/iphone/Maps/UI/Search/TabbedView/MWMSearchTabbedViewController.mm
+++ b/iphone/Maps/UI/Search/TabbedView/MWMSearchTabbedViewController.mm
@@ -2,10 +2,7 @@
#import "MWMCommon.h"
#import "MWMSearchCategoriesManager.h"
#import "MWMSearchHistoryManager.h"
-#import "MWMSearchTabbedCollectionViewCell.h"
#import "MWMSearchTabbedViewLayout.h"
-#import "MWMSearchTabbedViewProtocol.h"
-#import "Statistics.h"
#import "SwiftBridge.h"
#include "Framework.h"
@@ -117,7 +114,7 @@ BOOL isOffsetInButton(CGFloat offset, MWMSearchTabButtonsView * button)
- (void)tabButtonPressed:(MWMSearchTabButtonsView *)sender
{
- runAsyncOnMainQueue(^{
+ dispatch_async(dispatch_get_main_queue(), ^{
[self.tablesCollectionView
scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:sender.tag inSection:0]
atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally
@@ -131,7 +128,7 @@ BOOL isOffsetInButton(CGFloat offset, MWMSearchTabButtonsView * button)
CGFloat const btnMid = position + 0.5 * scrollIndicatorWidth;
if (isInterfaceRightToLeft())
position = scrollIndicatorWidth - position;
- runAsyncOnMainQueue(^{
+ dispatch_async(dispatch_get_main_queue(), ^{
self.scrollIndicatorOffset.constant = nearbyint(position);
});
MWMSearchTabButtonsView * selectedButton = self.selectedButton;