Changed the ChartServer and Search Book Contents URLs back to google.com instead of using the LocaleManager, as they are API calls, not user-facing websites.

git-svn-id: https://zxing.googlecode.com/svn/trunk@687 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin 2008-11-11 19:19:11 +00:00
parent e9a6e8e906
commit bb52a165d0
2 changed files with 6 additions and 4 deletions

View file

@ -35,8 +35,9 @@ import java.net.URLEncoder;
public final class QRCodeEncoder {
private static final String TAG = "QRCodeEncoder";
private static final String CHART_SERVER_URL =
"//chart.apis.google." + LocaleManager.getCountryTLD() + "/chart?cht=qr&chs=";
// Since this is an API call rather than a website, we don't use LocaleManager to change the TLD.
private static final String CHART_SERVER_URL = "//chart.apis.google.com/chart?cht=qr&chs=";
private final Activity mActivity;
private String mContents;

View file

@ -53,8 +53,9 @@ public final class SearchBookContentsActivity extends Activity {
private static final String TAG = "SearchBookContents";
// These return a JSON result which describes if and where the query was found. This API may
// break or disappear at any time in the future.
private static final String BOOK_SEARCH_URL = "//www.google." + LocaleManager.getCountryTLD() + "/books?vid=isbn";
// break or disappear at any time in the future. Since this is an API call rather than a website,
// we don't use LocaleManager to change the TLD.
private static final String BOOK_SEARCH_URL = "//www.google.com/books?vid=isbn";
private static final String BOOK_SEARCH_COMMAND = "&jscmd=SearchWithinVolume2&q=";
private NetworkThread mNetworkThread;