Skip to content

Commit

Permalink
fix isInit can' be set true when useFrameMetrics is false
Browse files Browse the repository at this point in the history
  • Loading branch information
leafjia committed Jan 13, 2022
1 parent d0588cc commit 87f17be
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void dispatchEnd() {
}

});

this.isInit = true;
frameIntervalNanos = ReflectUtils.reflectObject(choreographer, "mFrameIntervalNanos", Constants.DEFAULT_FRAME_DURATION);
if (!useFrameMetrics) {
choreographer = Choreographer.getInstance();
Expand All @@ -147,8 +147,6 @@ public void dispatchEnd() {
}
vsyncReceiver = ReflectUtils.reflectObject(choreographer, "mDisplayEventReceiver", null);


this.isInit = true;
MatrixLog.i(TAG, "[UIThreadMonitor] %s %s %s %s %s %s frameIntervalNanos:%s", callbackQueueLock == null, callbackQueues == null,
addInputQueue == null, addTraversalQueue == null, addAnimationQueue == null, vsyncReceiver == null, frameIntervalNanos);

Expand Down

0 comments on commit 87f17be

Please sign in to comment.