Issue 663

git-svn-id: https://zxing.googlecode.com/svn/trunk@1685 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-12-19 11:03:02 +00:00
parent 5d016ed151
commit e0f14ac620
2 changed files with 5 additions and 4 deletions

View file

@ -46,7 +46,7 @@ public final class ResultHandlerFactory {
} else if (type.equals(ParsedResultType.WIFI)) { } else if (type.equals(ParsedResultType.WIFI)) {
return new WifiResultHandler(activity, result); return new WifiResultHandler(activity, result);
} else if (type.equals(ParsedResultType.TEXT)) { } else if (type.equals(ParsedResultType.TEXT)) {
return new TextResultHandler(activity, result); return new TextResultHandler(activity, result, rawResult);
} else if (type.equals(ParsedResultType.GEO)) { } else if (type.equals(ParsedResultType.GEO)) {
return new GeoResultHandler(activity, result); return new GeoResultHandler(activity, result);
} else if (type.equals(ParsedResultType.TEL)) { } else if (type.equals(ParsedResultType.TEL)) {
@ -59,7 +59,7 @@ public final class ResultHandlerFactory {
return new ISBNResultHandler(activity, result, rawResult); return new ISBNResultHandler(activity, result, rawResult);
} else { } else {
// The TextResultHandler is the fallthrough for unsupported formats. // The TextResultHandler is the fallthrough for unsupported formats.
return new TextResultHandler(activity, result); return new TextResultHandler(activity, result, rawResult);
} }
} }

View file

@ -16,6 +16,7 @@
package com.google.zxing.client.android.result; package com.google.zxing.client.android.result;
import com.google.zxing.Result;
import com.google.zxing.client.android.R; import com.google.zxing.client.android.R;
import com.google.zxing.client.result.ParsedResult; import com.google.zxing.client.result.ParsedResult;
@ -35,8 +36,8 @@ public final class TextResultHandler extends ResultHandler {
R.string.button_custom_product_search, R.string.button_custom_product_search,
}; };
public TextResultHandler(Activity activity, ParsedResult result) { public TextResultHandler(Activity activity, ParsedResult result, Result rawResult) {
super(activity, result); super(activity, result, rawResult);
} }
@Override @Override