Fix Highlight not Removed Properly When Quit Flipper via Shortcut
Summary: Discovered in https://fburl.com/h6eczhr2; the highlight didn't get removed correctly. This was from [this method](https://fburl.com/diffusion/twur28gt), which must be called on main thread to be executed completely. Reviewed By: jknoxville Differential Revision: D21629318 fbshipit-source-id: cfc52ac755a1ddfe92e675aac1a81066ce338bd7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e216764238
commit
a42c2dda5b
@@ -164,10 +164,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)didDisconnect {
|
- (void)didDisconnect {
|
||||||
|
// removeFromSuperlayer (SKHighlightOverlay) needs to be called on main thread
|
||||||
|
FlipperPerformBlockOnMainThread(
|
||||||
|
^{
|
||||||
// Clear the last highlight if there is any
|
// Clear the last highlight if there is any
|
||||||
[self onCallSetHighlighted:nil withResponder:nil];
|
[self onCallSetHighlighted:nil withResponder:nil];
|
||||||
// Disable search if it is active
|
// Disable search if it is active
|
||||||
[self onCallSetSearchActive:NO withConnection:nil];
|
[self onCallSetSearchActive:NO withConnection:nil];
|
||||||
|
},
|
||||||
|
nil);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)onCallGetRoot:(id<FlipperResponder>)responder {
|
- (void)onCallGetRoot:(id<FlipperResponder>)responder {
|
||||||
|
|||||||
Reference in New Issue
Block a user