diff --git a/android/res/values/changelog.xml b/android/res/values/changelog.xml index aeaad145..bae96748 100644 --- a/android/res/values/changelog.xml +++ b/android/res/values/changelog.xml @@ -1,6 +1,9 @@ +Transdroid 1.1.6\n +- Improved label support, by Alexey Rogovoy\n +\n Transdroid 1.1.5\n - AndFTP alias:// support and file-in-root fix\n \n diff --git a/android/src/org/transdroid/preferences/Preferences.java b/android/src/org/transdroid/preferences/Preferences.java index 2f463c38..d9d1f191 100644 --- a/android/src/org/transdroid/preferences/Preferences.java +++ b/android/src/org/transdroid/preferences/Preferences.java @@ -626,6 +626,7 @@ public class Preferences { */ public static List getSupportedSiteSettings() { List settings = new ArrayList(); + settings.add(new SiteSettings("site_demonoid", "Demonoid")); settings.add(new SiteSettings("site_extratorrent", "ExtraTorrent")); settings.add(new SiteSettings("site_ezrss", "EzRss")); settings.add(new SiteSettings("site_isohunt", "isoHunt")); @@ -646,7 +647,9 @@ public class Preferences { * @return The Transdroid Torrent Search site key, f.e. 'Mininova' */ public static String getCursorKeyForPreferencesKey(String preferencesKey) { - if (preferencesKey.equals("site_extratorrent")) { + if (preferencesKey.equals("site_demonoid")) { + return "Demonoid"; + } else if (preferencesKey.equals("site_extratorrent")) { return "ExtraTorrent"; } else if (preferencesKey.equals("site_ezrss")) { return "EzRss"; @@ -671,7 +674,9 @@ public class Preferences { } public static SiteSettings getSupportedSiteSetting(String preferencesKey) { - if (preferencesKey.equals("site_extratorrent")) { + if (preferencesKey.equals("site_demonoid")) { + return new SiteSettings(preferencesKey, "Demonoid"); + } else if (preferencesKey.equals("site_extratorrent")) { return new SiteSettings(preferencesKey, "ExtraTorrent"); } else if (preferencesKey.equals("site_ezrss")) { return new SiteSettings(preferencesKey, "EzRss");