mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Moved the "geo:" fix to the 'right' place
git-svn-id: https://zxing.googlecode.com/svn/trunk@343 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
6f4417346c
commit
5f25bd00a3
|
@ -109,7 +109,7 @@ final class ResultHandler extends Handler {
|
|||
} else if (type.equals(ParsedReaderResultType.GEO)) {
|
||||
GeoParsedResult geoResult = (GeoParsedResult) result;
|
||||
try {
|
||||
ContentURI geoURI = new ContentURI("geo:" + geoResult.getGeoURI());
|
||||
ContentURI geoURI = new ContentURI(geoResult.getGeoURI());
|
||||
Log.v(TAG, "Created geo URI: " + geoURI.toString());
|
||||
intent = new Intent(Intent.VIEW_ACTION, geoURI);
|
||||
} catch (URISyntaxException e) {
|
||||
|
|
|
@ -68,7 +68,7 @@ public final class GeoParsedResult extends ParsedReaderResult {
|
|||
longitude = Float.parseFloat(rawText.substring(latitudeEnd + 1, longitudeEnd));
|
||||
altitude = Float.parseFloat(rawText.substring(longitudeEnd + 1));
|
||||
}
|
||||
return new GeoParsedResult(rawText, latitude, longitude, altitude);
|
||||
return new GeoParsedResult("geo:" + rawText, latitude, longitude, altitude);
|
||||
}
|
||||
|
||||
public String getGeoURI() {
|
||||
|
|
Loading…
Reference in a new issue