[android] LatLngBounds were not build correctly when lons were the same (#11647)

This commit is contained in:
Osana Babayan
2018-04-10 12:41:59 -04:00
committed by GitHub
parent aa43dfd6c1
commit 4191c4bbcb
2 changed files with 22 additions and 1 deletions

View File

@@ -394,7 +394,7 @@ public class LatLngBounds implements Parcelable {
}
static boolean containsLongitude(final double eastLon, final double westLon, final double longitude) {
if (eastLon > westLon) {
if (eastLon >= westLon) {
return (longitude <= eastLon)
&& (longitude >= westLon);
}