init Timing.java in a paused state

Summary: It hasn't been resumed yet when first constructed.

public

Reviewed By: astreet

Differential Revision: D2705635

fb-gh-sync-id: fa90a89524d56fd5e349ebad2820b42deba7f26f
This commit is contained in:
Aaron Chiu
2015-12-01 08:54:34 -08:00
committed by facebook-github-bot-1
parent a26b89f8bd
commit b6f662d6b6

View File

@@ -90,7 +90,7 @@ public final class Timing extends ReactContextBaseJavaModule implements Lifecycl
private final Object mTimerGuard = new Object();
private final PriorityQueue<Timer> mTimers;
private final SparseArray<Timer> mTimerIdsToTimers;
private final AtomicBoolean isPaused = new AtomicBoolean(false);
private final AtomicBoolean isPaused = new AtomicBoolean(true);
private final FrameCallback mFrameCallback = new FrameCallback();
private @Nullable ReactChoreographer mReactChoreographer;
private @Nullable JSTimersExecution mJSTimersModule;