feat(logview): append large log text in chunks to avoid UI freeze

This commit is contained in:
Akash Yadav
2023-04-16 23:33:26 +05:30
parent cfb9699036
commit 1783e27d8b
2 changed files with 79 additions and 9 deletions
@@ -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();