Added simple preference setting to download the card images in the prefered language from magiccards.info.

This commit is contained in:
LevelX2 2014-04-03 17:14:08 +02:00
parent 84f25d72d3
commit 253bdd5d5d
4 changed files with 133 additions and 59 deletions

View file

@ -97,7 +97,7 @@ public class Connection {
public enum ProxyType {
SOCKS("Socks"), HTTP("HTTP"), NONE("None");
private String text;
private final String text;
ProxyType(String text) {
this.text = text;
@ -110,7 +110,9 @@ public class Connection {
public static ProxyType valueByText(String value) {
for (ProxyType type : values()) {
if (type.text.equals(value)) return type;
if (type.text.equals(value)) {
return type;
}
}
return NONE;
}