diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-06-12 11:54:46 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-06-12 11:54:46 -0700 |
commit | 4176d21d1c1fd82db5e73c45cfd405ef98236f1f (patch) | |
tree | 629851ba9eec764dc9ca22a650ce5d22d6e04952 /platform/darwin | |
parent | 7dc880080e61cd5719f3681d16cb1a95df30651f (diff) | |
download | qtlocation-mapboxgl-4176d21d1c1fd82db5e73c45cfd405ef98236f1f.tar.gz |
Namespaced reachability notification constant
Fixes #1717.
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/reachability.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/reachability.m b/platform/darwin/reachability.m index d1413321b7..8abcf5ae6d 100644 --- a/platform/darwin/reachability.m +++ b/platform/darwin/reachability.m @@ -35,7 +35,7 @@ #import <netdb.h> -NSString *const kReachabilityChangedNotification = @"kReachabilityChangedNotification"; +NSString *const kMGLReachabilityChangedNotification = @"kMGLReachabilityChangedNotification"; @interface MGLReachability () @@ -452,7 +452,7 @@ static void TMReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRea // this makes sure the change notification happens on the MAIN THREAD dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification + [[NSNotificationCenter defaultCenter] postNotificationName:kMGLReachabilityChangedNotification object:self]; }); } |