Fixed the build and added some cleanup comments.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1812 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin@google.com 2011-06-07 15:45:03 +00:00
parent dbc98a7a22
commit 886e3a3e02
4 changed files with 5 additions and 3 deletions

View file

@ -95,7 +95,7 @@
<string name="preferences_bulk_mode_summary">Skenovať a ukladať veľa čiarových kódov bez prerušenia</string>
<string name="preferences_bulk_mode_title">Hromadný režim skenovania</string>
<string name="preferences_copy_to_clipboard_title">Kopírovať do schránky</string>
<string name="preferences_custom_product_search_summary">Použitie %s ako zástupný symbol pre ID produktu, a %f pre formát</string>
<string name="preferences_custom_product_search_summary" formatted="false">Použitie %s ako zástupný symbol pre ID produktu, a %f pre formát</string>
<string name="preferences_custom_product_search_title">Vlastné vyhľadávanie URL</string>
<string name="preferences_decode_1D_title">1D čiarové kódy</string>
<string name="preferences_decode_Data_Matrix_title">Dáta Matrix</string>

View file

@ -126,6 +126,7 @@ public final class SearchBookContentsActivity extends Activity {
}
isbn = intent.getStringExtra(Intents.SearchBookContents.ISBN);
// FIXME(dswitkin): Should not hardcode Books URL. Also does not handle books.google.ca etc.
if (isbn.startsWith("http://google.com/books?id=")) {
setTitle(getString(R.string.sbc_name));
} else {

View file

@ -364,10 +364,10 @@ public abstract class ResultHandler {
launchIntent(new Intent(Intent.ACTION_VIEW, uri));
}
final void searchBookContents(String isbn) {
final void searchBookContents(String isbnOrUrl) {
Intent intent = new Intent(Intents.SearchBookContents.ACTION);
intent.setClassName(activity, SearchBookContentsActivity.class.getName());
putExtra(intent, Intents.SearchBookContents.ISBN, isbn);
putExtra(intent, Intents.SearchBookContents.ISBN, isbnOrUrl);
launchIntent(intent);
}

View file

@ -76,6 +76,7 @@ public final class URIResultHandler extends ResultHandler {
}
private boolean isGoogleBooksURI() {
// FIXME(dswitkin): Should not hardcode Books URL. Also does not handle books.google.ca etc.
return ((URIParsedResult) getResult()).getURI().startsWith("http://google.com/books?id=");
}