mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 09:38:52 -05:00
combined nested if statements in AccountSetupCheckSettings
This commit is contained in:
parent
dd5ab2c2c6
commit
cfd77f8e32
@ -319,11 +319,11 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
||||
if (name.equalsIgnoreCase(storeURIHost) || name.equalsIgnoreCase(transportURIHost)) {
|
||||
//TODO: localize this string
|
||||
altNamesText.append("Subject(alt): ").append(name).append(",...\n");
|
||||
} else if (name.startsWith("*.")) {
|
||||
if (storeURIHost.endsWith(name.substring(2)) || transportURIHost.endsWith(name.substring(2))) {
|
||||
//TODO: localize this string
|
||||
altNamesText.append("Subject(alt): ").append(name).append(",...\n");
|
||||
}
|
||||
} else if (name.startsWith("*.") && (
|
||||
storeURIHost.endsWith(name.substring(2)) ||
|
||||
transportURIHost.endsWith(name.substring(2)))) {
|
||||
//TODO: localize this string
|
||||
altNamesText.append("Subject(alt): ").append(name).append(",...\n");
|
||||
}
|
||||
}
|
||||
chainInfo.append(altNamesText);
|
||||
|
Loading…
Reference in New Issue
Block a user