From bc5e23412dea13b7deb676ec809ce93be9a507f4 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Wed, 24 Oct 2012 10:21:38 +0200 Subject: [PATCH] Added Bitsnoop to the list of supported search sites. --- android/AndroidManifest.xml | 4 ++-- android/res/values/changelog.xml | 3 +++ .../org/transdroid/preferences/Preferences.java | 15 ++++++++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 132984af..6e6f06fb 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -18,8 +18,8 @@ --> diff --git a/android/res/values/changelog.xml b/android/res/values/changelog.xml index a02e8b1e..71d28727 100644 --- a/android/res/values/changelog.xml +++ b/android/res/values/changelog.xml @@ -1,6 +1,9 @@ +Transdroid 1.1.9\n +- Added Bitsnoop to search sites\n +\n Transdroid 1.1.8\n - Improved BitComet support, by Sergey\n - Fix for non-English KTorrent\n diff --git a/android/src/org/transdroid/preferences/Preferences.java b/android/src/org/transdroid/preferences/Preferences.java index 6bc813b3..7ea7e56b 100644 --- a/android/src/org/transdroid/preferences/Preferences.java +++ b/android/src/org/transdroid/preferences/Preferences.java @@ -629,6 +629,7 @@ public class Preferences { */ public static List getSupportedSiteSettings() { List settings = new ArrayList(); + settings.add(new SiteSettings("site_bitsnoop", "Bitsnoop")); settings.add(new SiteSettings("site_extratorrent", "ExtraTorrent")); settings.add(new SiteSettings("site_isohunt", "isoHunt")); settings.add(new SiteSettings("site_kickasstorrents", "KickassTorrents")); @@ -649,8 +650,10 @@ public class Preferences { * @return The Transdroid Torrent Search site key, f.e. 'Mininova' */ public static String getCursorKeyForPreferencesKey(String preferencesKey) { - if (preferencesKey.equals("site_extratorrent")) { - return "ExtraTorrent"; + if (preferencesKey.equals("site_bitsnoop")) { + return "Bitsnoop"; + } else if (preferencesKey.equals("site_extratorrent")) { + return "ExtraTorrent"; } else if (preferencesKey.equals("site_isohunt")) { return "Isohunt"; } else if (preferencesKey.equals("site_kickasstorrents")) { @@ -674,9 +677,11 @@ public class Preferences { } public static SiteSettings getSupportedSiteSetting(String preferencesKey) { - if (preferencesKey.equals("site_extratorrent")) { - return new SiteSettings(preferencesKey, "ExtraTorrent"); - } else if (preferencesKey.equals("site_isohunt")) { + if (preferencesKey.equals("site_bitsnoop")) { + return new SiteSettings(preferencesKey, "Bitsnoop"); + } else if (preferencesKey.equals("site_extratorrent")) { + return new SiteSettings(preferencesKey, "ExtraTorrent"); + } else if (preferencesKey.equals("site_isohunt")) { return new SiteSettings(preferencesKey, "Isohunt"); } else if (preferencesKey.equals("site_kickasstorrents")) { return new SiteSettings(preferencesKey, "KickassTorents");