Merge pull request #9646 from androiddevkotlin/street_complete_parsing
Fix #9532
This commit is contained in:
commit
133e8a25ef
4 changed files with 54 additions and 54 deletions
|
@ -492,7 +492,7 @@ public class GeoPointParserUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("z".equals(paramName) && paramValue != null) {
|
if ("z".equals(paramName) && paramValue != null) {
|
||||||
zoom = Integer.parseInt(paramValue);
|
zoom = (int) Float.parseFloat(paramValue);
|
||||||
} else if ("q".equals(paramName) && paramValue != null) {
|
} else if ("q".equals(paramName) && paramValue != null) {
|
||||||
searchRequest = URLDecoder.decode(paramValue);
|
searchRequest = URLDecoder.decode(paramValue);
|
||||||
}
|
}
|
||||||
|
@ -587,7 +587,7 @@ public class GeoPointParserUtil {
|
||||||
private static int parseZoom(String zoom) {
|
private static int parseZoom(String zoom) {
|
||||||
try {
|
try {
|
||||||
if (zoom != null) {
|
if (zoom != null) {
|
||||||
return Integer.valueOf(zoom);
|
return (int) Float.parseFloat(zoom);
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue