Skip to content

Commit e9effe1

Browse files
author
huangtaibin
committed
fix:Optimize log format
1 parent 9258998 commit e9effe1

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,8 @@ public int getChildDrawingOrder(int childCount, int index) {
7272
if (mDrawingOrderIndices != null
7373
&& (index >= mDrawingOrderIndices.length || mDrawingOrderIndices[index] >= childCount)) {
7474
FLog.w(ReactConstants.TAG,
75-
"getChildDrawingOrder index out of bounds! please check your operations of addding and " +
76-
"removing subview.Force updates here to prevent crash."
77-
+ " viewId:" + mViewGroup.getId()
78-
+ " childCount:" + childCount
79-
+ " index:" + index
80-
+ " mDrawingOrderIndices:" + Arrays.toString(mDrawingOrderIndices)
81-
+ " mNumberOfChildrenWithZIndex:" + mNumberOfChildrenWithZIndex
82-
);
75+
"getChildDrawingOrder index out of bounds! Please check any custom view manipulations you" +
76+
" may have done. childCount = %d, index = %d", childCount, index);
8377
update();
8478
}
8579

0 commit comments

Comments
 (0)