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>(); |