]> average.org Git - WhereAmI.git/commitdiff
Make the 'elsewhere' entry work
authorEugene Crosser <crosser@average.org>
Sat, 25 Feb 2012 09:51:07 +0000 (13:51 +0400)
committerEugene Crosser <crosser@average.org>
Sat, 25 Feb 2012 09:51:07 +0000 (13:51 +0400)
src/org/average/whereami/LastLocation.java

index 27c5c51f8f4909e0b7fdc2c7a925270c0897b9c2..5899bf5b24d1e6f09adb4ea84752d1d1315881ba 100644 (file)
@@ -105,8 +105,9 @@ public final class LastLocation extends Oracle {
                                        Double.parseDouble(loc_lats[i]),
                                        Double.parseDouble(loc_lons[i]));
                        Log.v(TAG, "Dist from " + loc_names[i] +
-                               " is " + dist);
-                       if ((loc_dists[i] == "0") ||
+                               " is " + dist +
+                               ", threshold " + loc_dists[i]);
+                       if ((loc_dists[i].equals("0")) ||
                            (dist < Double.parseDouble(loc_dists[i]))) {
                                locmsg = loc_names[i];
                                break;