Skip to content

Commit dbb86c3

Browse files
committed
优化数据展示4
1 parent 3cb1944 commit dbb86c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base_iotutils/src/main/java/com/face_chtj/base_iotutils/FormatViewUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static void formatContent(final TextView tv, String str, String pattern,
139139
tv.scrollTo(0, 0);
140140
} else {
141141
// 滚动到底部 (确保显示最新内容)
142-
int scrollAmount = layout.getLineTop(tv.getLineCount()) - tv.getHeight();
142+
final int scrollAmount = layout.getLineTop(tv.getLineCount()) - tv.getHeight();
143143
// 使用 post 确保滚动发生在文本布局完成后,更加可靠
144144
tv.post (new Runnable ( ) {
145145
@Override

0 commit comments

Comments
 (0)