mirror of
https://github.com/zxing/zxing.git
synced 2024-11-13 22:44:09 -08:00
Issue 663
git-svn-id: https://zxing.googlecode.com/svn/trunk@1685 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
5d016ed151
commit
e0f14ac620
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue