diff options
author | lookshe <github@lookshe.org> | 2015-04-12 20:59:12 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2015-04-12 20:59:12 +0200 |
commit | 56e695cf1be3c519d749e3736bdc60a39b43fd8d (patch) | |
tree | 6074c8c9b002f75df1c41c181f2ccc6e66debad2 /src/main/java/de/tzur | |
parent | 98c09f18a22628eae9c98f6efa861f739677e188 (diff) |
added settings for accepting and downloading files
fix in Settings, initialize with same values like in preferences.xml
Diffstat (limited to 'src/main/java/de/tzur')
-rw-r--r-- | src/main/java/de/tzur/conversations/Settings.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/main/java/de/tzur/conversations/Settings.java b/src/main/java/de/tzur/conversations/Settings.java index cc2ac045..ff253e40 100644 --- a/src/main/java/de/tzur/conversations/Settings.java +++ b/src/main/java/de/tzur/conversations/Settings.java @@ -38,20 +38,34 @@ public final class Settings { case "led_notify_color": Settings.LED_COLOR = preferences.getInt(name, Settings.LED_COLOR); break; + case "auto_download_file_wlan": + Settings.DOWNLOAD_ONLY_WLAN = preferences.getBoolean(name, Settings.DOWNLOAD_ONLY_WLAN); + break; + case "auto_download_file_link": + Settings.DOWNLOAD_IMAGE_LINKS = preferences.getBoolean(name, Settings.DOWNLOAD_IMAGE_LINKS); + break; } } /** * Boolean if emoticons should be parsed to emoticons or not. */ - public static boolean PARSE_EMOTICONS = false; + public static boolean PARSE_EMOTICONS = true; /** * Boolean if online status should be shown or not. */ - public static boolean SHOW_ONLINE_STATUS = false; + public static boolean SHOW_ONLINE_STATUS = true; /** * LED Color */ public static int LED_COLOR = 0xffffffff; + /** + * Boolean if image-links should be downloaded or not. + */ + public static boolean DOWNLOAD_IMAGE_LINKS = true; + /** + * Boolean if automatic downloads should be done only jif connected to WLAN. + */ + public static boolean DOWNLOAD_ONLY_WLAN = true; /** * This is a utility class - private constructor avoids any instantiation. |