Skip to content

Commit

Permalink
Constants already existed
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Jan 10, 2025
1 parent ee49e09 commit 7ba9109
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/de/blau/android/util/GeoUriData.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public class GeoUriData implements Serializable {

private static final String ZOOM_PARAMETER = "z";

private static final int MAX_LAT = 90;

private double lat = -Double.MAX_VALUE;
private double lon = -Double.MAX_VALUE;
private int zoom = -1;
Expand Down Expand Up @@ -175,6 +173,6 @@ public static GeoUriData parse(@NonNull String schemeSpecificPart) {
* @return true if the object contains both a latitude and a longitude
*/
boolean isValid() {
return lat >= -MAX_LAT && lat <= MAX_LAT && lon >= -GeoMath.MAX_LON && lon <= GeoMath.MAX_LON;
return lat >= -GeoMath.MAX_LAT && lat <= GeoMath.MAX_LAT && lon >= -GeoMath.MAX_LON && lon <= GeoMath.MAX_LON;
}
}

0 comments on commit 7ba9109

Please sign in to comment.