Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow numeric boolean parsing in kml styles #228

Merged
merged 2 commits into from Feb 22, 2016

Conversation

nealsanche
Copy link
Contributor

Adds a KmlBoolean class that encodes the boolean parsing method so that
both 'true' and '1' will be interpreted as a boolean true value, all other values
will return false.

Modify the KmlStyleParser to use this method for parsing booleans instead of
using Boolean.parseBoolean(string).

Adds two unit tests, and sample KML data files that implement this handling.

Adds a KmlBoolean class that encodes the boolean parsing method so that
both 'true' and '1' will be interpreted as a boolean true value, all other values
will return false.

Modify the KmlStyleParser to use this method for parsing booleans instead of
using Boolean.parseBoolean(string).

Adds two unit tests, and sample KML data files that implement this handling.
@@ -0,0 +1,13 @@
package com.google.maps.android.kml;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a copyright header to this file? Copy it from an existing file and bump the year to 2016.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.
On Feb 18, 2016 9:03 PM, "Mark McDonald" notifications@github.com wrote:

In library/src/com/google/maps/android/kml/KmlBoolean.java
#228 (comment)
:

@@ -0,0 +1,13 @@
+package com.google.maps.android.kml;

Can you please add a copyright header to this file? Copy it from an
existing file and bump the year to 2016.


Reply to this email directly or view it on GitHub
https://github.com/googlemaps/android-maps-utils/pull/228/files#r53420634
.

Robots and Pencils Inc | 1507 14th Ave SW Calgary AB T3C 0W4
You can unsubscribe from the Robots and Pencils mailing lists by clicking
here. https://robotsandpencils.com/contact/unsubscribe.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have done. See commit below.

@markmcd markmcd self-assigned this Feb 19, 2016
@markmcd
Copy link
Contributor

markmcd commented Feb 22, 2016

LGTM - thanks!

markmcd added a commit that referenced this pull request Feb 22, 2016
Allow numeric boolean parsing in kml styles
@markmcd markmcd merged commit 0923931 into googlemaps:master Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants