mirror of
https://github.com/status-im/react-native.git
synced 2025-03-01 09:30:33 +00: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:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user