mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-10 10:00:16 +08:00
Redbox: skip column number if it is 0 in Android.
Summary:
As for symbolicated stack trace in the red box in Android, make column number not shown if it's zero.
Format Before:
{F61180667}
Format After:
{F61180666}
Reviewed By: mkonicek
Differential Revision: D3358317
fbshipit-source-id: 87981e678e22ab9f483727002175c8835941ceee
This commit is contained in:
committed by
Facebook Github Bot 8
parent
c82856fb7a
commit
26d3af3421
@@ -124,7 +124,8 @@ import org.json.JSONObject;
|
||||
FrameViewHolder holder = (FrameViewHolder) convertView.getTag();
|
||||
holder.mMethodView.setText(frame.getMethod());
|
||||
final int column = frame.getColumn();
|
||||
final String columnString = column < 0 ? "" : ":" + column;
|
||||
// If the column is 0, don't show it in red box.
|
||||
final String columnString = column <= 0 ? "" : ":" + column;
|
||||
holder.mFileView.setText(frame.getFileName() + ":" + frame.getLine() + columnString);
|
||||
return convertView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user