修复编译错误

serial
BlueMatthew 1 year ago
parent 7b3061c8b3
commit 631f294103

@ -153,7 +153,7 @@ public class MainActivity extends AppCompatActivity {
}
if (log != null) {
binding.logs.append(log);
int offset = mLines * binding.logs.getLineHeight();
int offset = binding.logs.getLineCount() * binding.logs.getLineHeight();
if (offset > binding.logs.getHeight()) {
binding.logs.scrollTo(0, offset - binding.logs.getHeight() + binding.logs.getLineHeight());
}

Loading…
Cancel
Save