mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-25 15:11:52 -05:00
Java5 style 'for'
This commit is contained in:
parent
a5f4ddae91
commit
c5802ed8ef
@ -2312,11 +2312,13 @@ public class MimeUtility {
|
|||||||
} catch (IllegalCharsetNameException e) {
|
} catch (IllegalCharsetNameException e) {
|
||||||
supported = false;
|
supported = false;
|
||||||
}
|
}
|
||||||
for (int i = 0, len = CHARSET_FALLBACK_MAP.length; !supported && i < len; i++) {
|
for (String[] rule: CHARSET_FALLBACK_MAP) {
|
||||||
if (charset.matches(CHARSET_FALLBACK_MAP[i][0])) {
|
if (supported)
|
||||||
|
break;
|
||||||
|
if (charset.matches(rule[0])) {
|
||||||
Log.e(K9.LOG_TAG, "I don't know how to deal with the charset " + charset +
|
Log.e(K9.LOG_TAG, "I don't know how to deal with the charset " + charset +
|
||||||
". Falling back to " + CHARSET_FALLBACK_MAP[i][1]);
|
". Falling back to " + rule[1]);
|
||||||
charset = CHARSET_FALLBACK_MAP[i][1];
|
charset = rule[1];
|
||||||
try {
|
try {
|
||||||
supported = Charset.isSupported(charset);
|
supported = Charset.isSupported(charset);
|
||||||
} catch (IllegalCharsetNameException e) {
|
} catch (IllegalCharsetNameException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user