diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java index 4de8350..b301575 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java @@ -41,7 +41,7 @@ public class NumberUtils { String trimmed = s.trim(); try { - return Double.parseDouble(trimmed); + return Float.parseFloat(trimmed); } catch (NumberFormatException e) { return null; }