Example #1
0
 public String getDistanceUnitString() {
   String units = _preferences.distance_units().get();
   if (units.equalsIgnoreCase("m")) return "Miles";
   return "km";
 }
Example #2
0
 public double distance(double kms) {
   String units = _preferences.distance_units().get();
   if (units.equalsIgnoreCase("m")) return kilometersToMiles(kms);
   return kms;
 }