Update OSMIndoorLayer.java (#365)

The get level method does not parse levels with double type i.e. 0.5.
The app crashes at the time of loading. The solution to this issue, is
parsing double and then converting it into integer value.
e.g. level 0.5 to level 0
This commit is contained in:
akarsh 2017-06-16 11:55:13 +02:00 committed by Emux
parent 0d14473132
commit 4938852b40

View File

@ -172,7 +172,7 @@ public class OSMIndoorLayer extends JeoVectorLayer {
o = f.get("level");
if (o instanceof String) {
return Integer.parseInt((String) o);
return (int) Double.parseDouble((String) o);
}
return 0;