From decf2dee928fbbf05c614532248ae0cf990cd7d3 Mon Sep 17 00:00:00 2001 From: Igor Khmurets Date: Fri, 25 Jul 2014 16:56:43 +0300 Subject: [PATCH] [ios] MAT reachability notification names conflict --- iphone/Maps/Statistics/Reachability.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Statistics/Reachability.m b/iphone/Maps/Statistics/Reachability.m index fe455ab6e4..41ebc3b9a6 100644 --- a/iphone/Maps/Statistics/Reachability.m +++ b/iphone/Maps/Statistics/Reachability.m @@ -1,7 +1,7 @@ #import "Reachability.h" -NSString *const kReachabilityChangedNotification = @"kReachabilityChangedNotification"; +NSString *const NetworkReachabilityChangedNotification = @"NetworkReachabilityChangedNotification"; @interface Reachability () @@ -328,7 +328,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:NetworkReachabilityChangedNotification object:self]; }); }