-
Notifications
You must be signed in to change notification settings - Fork 108
代码片段显示奔溃 #20
Copy link
Copy link
Open
Description
加载代码片段有时候空格很大,有时候会奔溃 private int getTextInLineLenInRange(CharSequence text, int start, int end, int rs, int re, Paint paint) {
int e = rs;
if (rs > end) {
return end;
}
while (paint.measureText(text, start, e) < mWidth - PADDING * 2) {
e++;
if (e > end || e > re) {
break;
}
}
return e - 1;
} 这个方法会出现数组越界的异常奔溃,请问怎么弄
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels