473 |
builder.setNegativeButton( getString(generic_cancel), new DialogInterface.OnClickListener() { |
builder.setNegativeButton( getString(generic_cancel), new DialogInterface.OnClickListener() { |
474 |
public void onClick(DialogInterface dialog, int id) { |
public void onClick(DialogInterface dialog, int id) { |
475 |
dialog.dismiss(); |
dialog.dismiss(); |
476 |
|
StationList.this.finish(); // Close this Activity |
477 |
} |
} |
478 |
}); |
}); |
479 |
builder.show(); |
builder.show(); |
531 |
|
|
532 |
switch (method) { |
switch (method) { |
533 |
case ByLocation: |
case ByLocation: |
534 |
stations = stationProvider.lookupStations(loc); |
stations = stationProvider.lookupStationsByLocation(loc); |
535 |
break; |
break; |
536 |
case ByName: |
case ByName: |
537 |
stations = stationProvider.lookupStationsByName(name); |
stations = stationProvider.lookupStationsByName(name); |