forked from organicmaps/organicmaps
[ios] MAT reachability notification names conflict
This commit is contained in:
parent
bcc19f8d7a
commit
decf2dee92
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue