mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
feat(logview): append large log text in chunks to avoid UI freeze
This commit is contained in:
+3
-1
@@ -52,7 +52,9 @@ public class MainActivity extends AppCompatActivity {
|
||||
handler.postDelayed(logger, 1000);
|
||||
|
||||
new Thread(() -> {
|
||||
for (int i = 0; i < 20000; i++) {
|
||||
|
||||
// Test with 100K lines at once
|
||||
for (int i = 0; i < 100000; i++) {
|
||||
Log.d("SomeLogs", "Log #" + i);
|
||||
}
|
||||
}).start();
|
||||
|
||||
Reference in New Issue
Block a user