diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2018-08-14 11:33:37 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-08-14 11:49:57 +0300 |
commit | 7c632c4e87bf15a69c76957dacfa71dd7af10c8c (patch) | |
tree | dc1926764a827a7ada9f5731bf3657ffbdb9ae88 | |
parent | 5ccb2095808fdf70b60d69584e0920e021e4d3b0 (diff) |
[release-only] removed ugc auth notification.android-gr-834
-rw-r--r-- | iphone/Maps/Classes/MapsAppDelegate.mm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 67379faee1..1ee55ebf59 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -414,22 +414,11 @@ using namespace osm_auth_ios; - (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { - auto onTap = ^{ - MapViewController * mapViewController = [MapViewController sharedController]; - [mapViewController.navigationController popToRootViewControllerAnimated:NO]; - [mapViewController showUGCAuth]; - }; - - if ([LocalNotificationManager.sharedManager showUGCNotificationIfNeeded:onTap]) - { - completionHandler(UIBackgroundFetchResultNewData); - return; - } - auto tasks = @[ [[MWMBackgroundStatisticsUpload alloc] init], [[MWMBackgroundEditsUpload alloc] init], [[MWMBackgroundUGCUpload alloc] init], [[MWMBackgroundDownloadMapNotification alloc] init] ]; + [self runBackgroundTasks:tasks completionHandler:completionHandler]; } |