Fix isSearchActive crash in wilde
Summary: This responder was added to android but not iOS, and was always being called during layout init. Fixing by implementing it in iOS too. Reviewed By: priteshrnandgaonkar Differential Revision: D10489411 fbshipit-source-id: ef711dc5f54f52dd76db1245d07f9007fc846532
This commit is contained in:
committed by
Facebook Github Bot
parent
66790e12e6
commit
4eaf76ecf2
@@ -108,6 +108,10 @@
|
|||||||
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetSearchActive: [params[@"active"] boolValue] withConnection: connection]; });
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallSetSearchActive: [params[@"active"] boolValue] withConnection: connection]; });
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
[connection receive:@"isSearchActive" withBlock:^(NSDictionary *params, id<FlipperResponder> responder) {
|
||||||
|
FlipperPerformBlockOnMainThread(^{ [weakSelf onCallIsSearchActiveWithConnection: responder]; });
|
||||||
|
}];
|
||||||
|
|
||||||
[connection receive:@"isConsoleEnabled" withBlock:^(NSDictionary *params, id<FlipperResponder> responder) {
|
[connection receive:@"isConsoleEnabled" withBlock:^(NSDictionary *params, id<FlipperResponder> responder) {
|
||||||
FlipperPerformBlockOnMainThread(^{ [responder success: @{@"isEnabled": @NO}];});
|
FlipperPerformBlockOnMainThread(^{ [responder success: @{@"isEnabled": @NO}];});
|
||||||
}];
|
}];
|
||||||
@@ -238,6 +242,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)onCallIsSearchActiveWithConnection:(id<FlipperResponder>)responder {
|
||||||
|
[responder success: @{ @"isSearchActive": @NO }];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)invalidateNode:(id<NSObject>)node {
|
- (void)invalidateNode:(id<NSObject>)node {
|
||||||
SKNodeDescriptor *descriptor = [_descriptorMapper descriptorForClass: [node class]];
|
SKNodeDescriptor *descriptor = [_descriptorMapper descriptorForClass: [node class]];
|
||||||
if (descriptor == nil) {
|
if (descriptor == nil) {
|
||||||
|
|||||||
Reference in New Issue
Block a user