1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Limit logcat to 500 lines

Fixes #44
This commit is contained in:
M66B 2018-08-23 20:32:25 +00:00
parent 9bee86ad84
commit 78cd6c8e79

View file

@ -107,7 +107,11 @@ public class Helper {
Process proc = null;
BufferedReader br = null;
try {
String[] cmd = new String[]{"logcat", "-d", "-v", "threadtime", TAG + ":I"};
String[] cmd = new String[]{"logcat",
"-d",
"-v", "threadtime",
"-t", "500",
TAG + ":I"};
proc = Runtime.getRuntime().exec(cmd);
br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String line;