Browse Source

Started 1.1.6 version.

pull/11/head
Eric Kok 12 years ago
parent
commit
ada1591291
  1. 3
      android/res/values/changelog.xml
  2. 9
      android/src/org/transdroid/preferences/Preferences.java

3
android/res/values/changelog.xml

@ -1,6 +1,9 @@ @@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="changes">
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

9
android/src/org/transdroid/preferences/Preferences.java

@ -626,6 +626,7 @@ public class Preferences { @@ -626,6 +626,7 @@ public class Preferences {
*/
public static List<SiteSettings> getSupportedSiteSettings() {
List<SiteSettings> settings = new ArrayList<SiteSettings>();
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 { @@ -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 { @@ -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");

Loading…
Cancel
Save