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/Classes/MapsAppDelegate.mm')
-rw-r--r--iphone/Maps/Classes/MapsAppDelegate.mm13
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];
}