mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix layout MountItem logging
Summary: After. D38153924 (https://github.com/facebook/react-native/commit/e24ce708abffee8ec4521ba8162ea8964eb4429f), layout mount items have 7 int arguments but the logger only pulls out and displays 6, which leads to the following exception: "Caught exception trying to print java.lang.IllegalArgumentException: Invalid type argument to IntBufferBatchMountItem" Changelog: [Internal] Created from CodeHub with https://fburl.com/edit-in-codehub Differential Revision: D38472664 fbshipit-source-id: 1583a5514c2ab662eaf5c4ce4bf33c958cb05282
This commit is contained in:
committed by
Facebook GitHub Bot
parent
39fb2cccb2
commit
9ac0c01d8c
+5
-3
@@ -247,11 +247,13 @@ public class IntBufferBatchMountItem implements MountItem {
|
||||
: "<hidden>";
|
||||
s.append(String.format("UPDATE STATE [%d]: %s\n", mIntBuffer[i++], stateString));
|
||||
} else if (type == INSTRUCTION_UPDATE_LAYOUT) {
|
||||
int reactTag = mIntBuffer[i++];
|
||||
int parentTag = mIntBuffer[i++];
|
||||
s.append(
|
||||
String.format(
|
||||
"UPDATE LAYOUT [%d]: x:%d y:%d w:%d h:%d displayType:%d\n",
|
||||
mIntBuffer[i++],
|
||||
mIntBuffer[i++],
|
||||
"UPDATE LAYOUT [%d]->[%d]: x:%d y:%d w:%d h:%d displayType:%d\n",
|
||||
parentTag,
|
||||
reactTag,
|
||||
mIntBuffer[i++],
|
||||
mIntBuffer[i++],
|
||||
mIntBuffer[i++],
|
||||
|
||||
Reference in New Issue
Block a user