X-Git-Url: https://git.gumartinm.name/?a=blobdiff_plain;f=source%2FJavaUpdateLocation.java;h=5595b769d72eb07f3a64d72f752cb9608c5eab7c;hb=7eb5a733eecfe492843253f3b368a4fcbe7ae5ed;hp=8af5086924fefe5a06c0b48e7cc79de89865051f;hpb=e995ec539c8be249c7f9a6bbb6917ff7c9f2e1f3;p=PFCLatex%2F.git diff --git a/source/JavaUpdateLocation.java b/source/JavaUpdateLocation.java index 8af5086..5595b76 100644 --- a/source/JavaUpdateLocation.java +++ b/source/JavaUpdateLocation.java @@ -1,6 +1,6 @@ public void makeUseOfNewLocation(Location loc) { - final String latitude = Double.toString(loc.getLatitude()); - final String longitude = Double.toString(loc.getLongitude()); + final String latitude = String.valueOf(location.getLatitude()); + final String longitude = String.valueOf(location.getLongitude()); final String URLAuth = urlServer + latitude + "/" + longitude + "/gpsads.json"; URL url = new URL(URLAuth); this.exec.execute(new Batch(url));