/[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 1448 by torben, Thu May 5 05:08:00 2011 UTC revision 1485 by torben, Sat May 28 17:38:44 2011 UTC
# Line 245  public class StationList extends ListAct Line 245  public class StationList extends ListAct
245          public boolean onOptionsItemSelected(MenuItem item) {          public boolean onOptionsItemSelected(MenuItem item) {
246                  boolean retval = true;                  boolean retval = true;
247    
248                  //TODO: Cleanup  
249                  switch (item.getItemId()) {                  switch (item.getItemId()) {
250                  case OPTIONS_MAP:                  case OPTIONS_MAP:
251                                                    
252                            if ( stations == null || stations.entries == null || stations.entries.size() == 0 ) {
253                                    Toast.makeText(this, "No stations to show on map", Toast.LENGTH_SHORT); //TODO: Translate
254                                    return true;
255                            }
256                            
257                          Intent intent = new Intent(this,StationMapView.class);                          Intent intent = new Intent(this,StationMapView.class);
258                                                    
259                          ArrayList<GeoPair> stationPoints = new ArrayList<GeoPair>();                          ArrayList<GeoPair> stationPoints = new ArrayList<GeoPair>();

Legend:
Removed from v.1448  
changed lines
  Added in v.1485

  ViewVC Help
Powered by ViewVC 1.1.20