mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Try reduce flackiness of VeniceTest
Summary: Simplify addLifecycleEventListener for the flaky test because we just want to test that listener is working. Changelog: [Android][Changed] - Add a spare implementation of addLifecycleEventListener for test purpose. Reviewed By: PeteTheHeat Differential Revision: D26749256 fbshipit-source-id: 5af216e6bfa37a15eb189aa24a3df35a7a7112de
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cbe7c445f7
commit
be7f057bac
@@ -158,7 +158,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
||||
mEventDispatcher,
|
||||
minTimeLeftInFrameForNonBatchedOperationMs);
|
||||
|
||||
reactContext.addLifecycleEventListener(this);
|
||||
reactContext.addLifecycleEventListenerAndCheckState(this);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@@ -180,7 +180,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
||||
mEventDispatcher,
|
||||
minTimeLeftInFrameForNonBatchedOperationMs);
|
||||
|
||||
reactContext.addLifecycleEventListener(this);
|
||||
reactContext.addLifecycleEventListenerAndCheckState(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user