summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-15 11:27:37 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-04-15 11:27:37 -0400
commit70bb318e7503ca136608d5632431793405bbab64 (patch)
tree7915d53915ec57172c268fd1390234447bb982ff /ios
parent79d34115d05a6bffadd3568044187f8bc8ed7519 (diff)
downloadqtlocation-mapboxgl-70bb318e7503ca136608d5632431793405bbab64.tar.gz
update activity indicator on ios
Diffstat (limited to 'ios')
-rw-r--r--ios/MBXViewController.mm9
1 files changed, 0 insertions, 9 deletions
diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm
index 2a0f64849a..a951632f37 100644
--- a/ios/MBXViewController.mm
+++ b/ios/MBXViewController.mm
@@ -71,7 +71,6 @@ MBXViewController *view = nullptr;
map->loadSettings();
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateRender:) name:MBXNeedsRenderNotification object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateNetworkActivity:) name:MBXUpdateActivityNotification object:nil];
}
@@ -159,14 +158,6 @@ MBXViewController *view = nullptr;
self.paused = NO;
}
-- (void)updateNetworkActivity:(NSNotification *)notification
-{
- [[NSURLSession sharedSession] getTasksWithCompletionHandler:^(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks)
- {
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:([downloadTasks count] > 0)];
- }];
-}
-
#pragma mark - Rendering delegates
- (void)viewWillLayoutSubviews