207 |
if (loc != null) { |
if (loc != null) { |
208 |
message.append( getString(stationlist_obtainedby) ).append( loc.getProvider() ).append("\n"); |
message.append( getString(stationlist_obtainedby) ).append( loc.getProvider() ).append("\n"); |
209 |
message.append( getString(stationlist_accuracy) ).append( (int)loc.getAccuracy()).append("m\n"); |
message.append( getString(stationlist_accuracy) ).append( (int)loc.getAccuracy()).append("m\n"); |
210 |
message.append( getString(stationlist_latitude) ).append( loc.getLatitude()).append("\n"); |
message.append( getString(stationlist_latitude) ).append( (float)loc.getLatitude()).append("\n"); |
211 |
message.append( getString(stationlist_longitude) ).append( loc.getLongitude() ).append("\n"); |
message.append( getString(stationlist_longitude) ).append( (float)loc.getLongitude() ).append("\n"); |
212 |
} else { |
} else { |
213 |
message.append( getString(stationlist_nolocation) ); |
message.append( getString(stationlist_nolocation) ); |
214 |
} |
} |
577 |
if (!favorites.contains(stationID)) { |
if (!favorites.contains(stationID)) { |
578 |
menu.add(0, FAVORITES_ADD, 0, getString(stationlist_addfavorite) ); |
menu.add(0, FAVORITES_ADD, 0, getString(stationlist_addfavorite) ); |
579 |
} else { |
} else { |
580 |
menu.add(0, FAVORITES_REMOVE, 0, getString(stationlist_addfavorite) ); |
menu.add(0, FAVORITES_REMOVE, 0, getString(stationlist_removefavorite) ); |
581 |
} |
} |
582 |
|
|
583 |
} |
} |