diff options
author | Soonil Nagarkar <sooniln@google.com> | 2015-01-30 11:29:42 -0800 |
---|---|---|
committer | Soonil Nagarkar <sooniln@google.com> | 2015-01-30 11:29:42 -0800 |
commit | 71f0cd45eff088d26309564d6766003bb788a04b (patch) | |
tree | 95d2454e86a4cac3d00b32b51db2622c1b03b689 /location | |
parent | 14dc3c900febb05cca89ffe610ebf7fb970e552b (diff) | |
download | frameworks_base-71f0cd45eff088d26309564d6766003bb788a04b.zip frameworks_base-71f0cd45eff088d26309564d6766003bb788a04b.tar.gz frameworks_base-71f0cd45eff088d26309564d6766003bb788a04b.tar.bz2 |
Update Location.convert() javadocs to reflect their inconsistency with locales.
The Location.convert() methods do not invert each other as might be
expected. Changing this would introduce breaking changes, so I've
updated the javadocs to make this clearer.
Bug: 13280976
Change-Id: If4bd3c83d5fb67915450849ca471aabc27544dac
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/Location.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index fcf222b..bf3387b 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -170,6 +170,9 @@ public class Location implements Parcelable { * Converts a coordinate to a String representation. The outputType * may be one of FORMAT_DEGREES, FORMAT_MINUTES, or FORMAT_SECONDS. * The coordinate must be a valid double between -180.0 and 180.0. + * This conversion is performed in a method that is dependent on the + * default locale, and so is not guaranteed to round-trip with + * {@link #convert(String)}. * * @throws IllegalArgumentException if coordinate is less than * -180.0, greater than 180.0, or is not a number. @@ -217,7 +220,9 @@ public class Location implements Parcelable { /** * Converts a String in one of the formats described by * FORMAT_DEGREES, FORMAT_MINUTES, or FORMAT_SECONDS into a - * double. + * double. This conversion is performed in a locale agnostic + * method, and so is not guaranteed to round-trip with + * {@link #convert(double, int)}. * * @throws NullPointerException if coordinate is null * @throws IllegalArgumentException if the coordinate is not |