Skip to content

Commit 100b4e7

Browse files
committed
Merge pull request #367 from ParsePlatform/nlutsenko.activityindicator
Fix late initialization of NetworkActivityIndicatorManager.
2 parents 9b44693 + bdcd164 commit 100b4e7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Parse/Internal/PFInternalUtils.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#import "PFHash.h"
3636

3737
#if PARSE_IOS_ONLY
38-
#import "PFNetworkActivityIndicatorManager.h"
3938
#import "PFProduct.h"
4039
#endif
4140

@@ -46,10 +45,6 @@ @implementation PFInternalUtils
4645
+ (void)initialize {
4746
if (self == [PFInternalUtils class]) {
4847
[self setParseServer:kPFParseServer];
49-
50-
#if PARSE_IOS_ONLY
51-
[PFNetworkActivityIndicatorManager sharedManager].enabled = YES;
52-
#endif
5348
}
5449
}
5550

Parse/Parse.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ + (void)setApplicationId:(NSString *)applicationId clientKey:(NSString *)clientK
8383
#endif
8484
#endif
8585

86+
#if TARGET_OS_IOS
87+
[PFNetworkActivityIndicatorManager sharedManager].enabled = YES;
88+
#endif
89+
8690
[currentParseManager_ preloadDiskObjectsToMemoryAsync];
8791

8892
[[self parseModulesCollection] parseDidInitializeWithApplicationId:applicationId clientKey:clientKey];

0 commit comments

Comments
 (0)