/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/StationList.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/StationList.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 561 by torben, Thu Jan 28 08:55:19 2010 UTC revision 566 by torben, Thu Jan 28 10:34:50 2010 UTC
# Line 207  public class StationList extends ListAct Line 207  public class StationList extends ListAct
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                          }                                                }                      
# Line 528  public class StationList extends ListAct Line 528  public class StationList extends ListAct
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                                                                    
# Line 577  public class StationList extends ListAct Line 578  public class StationList extends ListAct
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                  }                  }

Legend:
Removed from v.561  
changed lines
  Added in v.566

  ViewVC Help
Powered by ViewVC 1.1.20