[ASDisplayNode] Fix flickering for nodes that support range managed interface state (#2710)

* Fix flickering for range managed nodes

* Go back to old behavior to check for range managed before calling didExitPreloadState in interface state change
This commit is contained in:
Michael Schneider
2016-12-05 10:34:03 -08:00
committed by Hannah Troisi
parent e361d00a73
commit a2e75152f8
2 changed files with 6 additions and 3 deletions

View File

@@ -1936,6 +1936,7 @@ static bool stringContainsPointer(NSString *description, id p) {
- (void)testDidExitPreloadIsCalledWhenNodesExitPreloadRange
{
ASTestDisplayNode *node = [[ASTestDisplayNode alloc] init];
[node setHierarchyState:ASHierarchyStateRangeManaged];
[node recursivelySetInterfaceState:ASInterfaceStatePreload];
[node recursivelySetInterfaceState:ASInterfaceStateDisplay];