From 029a51a5672caafba9eeb4c033f68853701c2c6d Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Thu, 16 Feb 2012 13:45:24 +0100 Subject: [PATCH] Fixed barcode scanner start (issue 383). Removed now-defunct BTJunkie search site form list. --- android/src/org/transdroid/gui/TorrentsFragment.java | 2 +- android/src/org/transdroid/preferences/Preferences.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/android/src/org/transdroid/gui/TorrentsFragment.java b/android/src/org/transdroid/gui/TorrentsFragment.java index 7d4d9c95..3e040665 100644 --- a/android/src/org/transdroid/gui/TorrentsFragment.java +++ b/android/src/org/transdroid/gui/TorrentsFragment.java @@ -128,7 +128,7 @@ public class TorrentsFragment extends Fragment implements IDaemonCallback, OnTou private static final int ACTIVITY_PREFERENCES = 0; private static final int ACTIVITY_DETAILS = 1; - private static final int ACTIVITY_BARCODE = 0x0ba7c0de; // get it? + private static final int ACTIVITY_BARCODE = 0x0000c0de; private static final int DIALOG_SERVERS = 0; private static final int DIALOG_RATES = 1; diff --git a/android/src/org/transdroid/preferences/Preferences.java b/android/src/org/transdroid/preferences/Preferences.java index 1c929923..b21adc85 100644 --- a/android/src/org/transdroid/preferences/Preferences.java +++ b/android/src/org/transdroid/preferences/Preferences.java @@ -590,9 +590,7 @@ public class Preferences { } public static SiteSettings getSupportedSiteSetting(String preferencesKey) { - if (preferencesKey.equals("site_btjunkie")) { - return new SiteSettings(preferencesKey, "BTJunkie"); - } else if (preferencesKey.equals("site_extratorrent")) { + if (preferencesKey.equals("site_extratorrent")) { return new SiteSettings(preferencesKey, "ExtraTorrent"); } else if (preferencesKey.equals("site_ezrss")) { return new SiteSettings(preferencesKey, "EzRss");