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 |
} |
} |
528 |
|
|
529 |
|
|
530 |
if (success) { |
if (success) { |
531 |
if (stationProvider.getStations().size() == 0) |
if (stationProvider.getStations().size() == 0) { |
532 |
MessageBox.showMessage(StationList.this, getString(stationlist_nostations) ); // this should not be possible !?! |
showMessageAndClose(getString(stationlist_nostations)); |
533 |
|
} |
534 |
stations = stationProvider.getStations(); |
stations = stationProvider.getStations(); |
535 |
adapter.setStations( stations ); |
adapter.setStations( stations ); |
536 |
|
|
578 |
if (!favorites.contains(stationID)) { |
if (!favorites.contains(stationID)) { |
579 |
menu.add(0, FAVORITES_ADD, 0, getString(stationlist_addfavorite) ); |
menu.add(0, FAVORITES_ADD, 0, getString(stationlist_addfavorite) ); |
580 |
} else { |
} else { |
581 |
menu.add(0, FAVORITES_REMOVE, 0, getString(stationlist_addfavorite) ); |
menu.add(0, FAVORITES_REMOVE, 0, getString(stationlist_removefavorite) ); |
582 |
} |
} |
583 |
|
|
584 |
} |
} |