diff options
-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]; } |