Commit bfbfffd3 authored by Administrator's avatar Administrator

减少日志显示容量,避免页面卡死

parent a955eee4
......@@ -254,9 +254,10 @@ public class LogsFragment extends Fragment {
}
}
@SuppressLint("StaticFieldLeak")
private class LogsReader extends AsyncTask<File, Integer, String> {
private static final int MAX_LOG_SIZE = 1000 * 1024; // 1000 KB
// 最多显示100K的日志,太大了的情况app会卡死
private static final int MAX_LOG_SIZE = 100 * 1024;
private MaterialDialog mProgressDialog;
private long skipLargeFile(BufferedReader is, long length) throws IOException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment