Skip to content

Commit

Permalink
Update BaseLocationManager.java (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplandry908 committed Dec 1, 2022
1 parent 466d52c commit 9324cbc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ protected static WritableMap locationToMap(Location location) {
}

protected static void putIntoMap(WritableMap map, String key, Object value) {
if (value instanceof Integer || value instanceof Long) {
if (value instanceof Integer) {
map.putInt(key, (Integer) value);
} else if (value instanceof Long) {
map.putInt(key, ((Long) value).intValue());
} else if (value instanceof Float) {
map.putDouble(key, (Float) value);
} else if (value instanceof Double) {
Expand Down

0 comments on commit 9324cbc

Please sign in to comment.