1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Reduced logging

This commit is contained in:
M66B 2020-10-18 09:02:08 +02:00
parent 35e47ffc14
commit 90f73a086c

View file

@ -77,9 +77,12 @@ class CharsetHelper {
Log.i("compact_enc_det sample=" + sample.length);
String detected = jni_detect(sample);
if ("US-ASCII".equals(detected))
if ("US-ASCII".equals(detected) ||
"ISO-8859-1".equals(detected) ||
"UTF-8".equals(detected))
Log.w("compact_enc_det result=" + detected);
else
// windows-1250, windows-1257
Log.e("compact_enc_det result=" + detected);
return Charset.forName(detected);