Skip to content

Commit

Permalink
fix(android): rename to PAINT_TYPE_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 committed Mar 27, 2024
1 parent c138d49 commit 4ef0ac9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class NativeRenderer extends Renderer implements NativeRender, NativeRend
private static final String EVENT_PREFIX = "on";
private static final String SNAPSHOT_CREATE_NODE = "createNode";
private static final String SNAPSHOT_UPDATE_LAYOUT = "updateLayout";
private static final String FCP_KEY = "paintType";
private static final String PAINT_TYPE_KEY = "paintType";
private static final String FCP_VALUE = "fcp";
/**
* The max capacity of UI task queue
Expand Down Expand Up @@ -494,7 +494,7 @@ private UITaskExecutor getMassTaskExecutor(@NonNull final List<UITaskExecutor> t

private void updateFcpStateIfNeeded(int rootId, @Nullable Map<String, Object> props) {
if (mFcpBatchState == FCPBatchState.WATCHING && props != null && rootId != SCREEN_SNAPSHOT_ROOT_ID) {
if (MapUtils.getStringValue(props, FCP_KEY, "").equalsIgnoreCase(FCP_VALUE)) {
if (MapUtils.getStringValue(props, PAINT_TYPE_KEY, "").equalsIgnoreCase(FCP_VALUE)) {
mFcpBatchState = FCPBatchState.DETECTED;
}
}
Expand Down

0 comments on commit 4ef0ac9

Please sign in to comment.