56 |
String addr = launchedBy.getStringExtra("address"); |
String addr = launchedBy.getStringExtra("address"); |
57 |
((TextView) findViewById(R.id.stationAddr)).setText( addr ); |
((TextView) findViewById(R.id.stationAddr)).setText( addr ); |
58 |
|
|
59 |
|
String code = launchedBy.getStringExtra("code"); |
60 |
|
|
61 |
findViewById(R.id.header).setOnClickListener( mapLauncher ); |
findViewById(R.id.header).setOnClickListener( mapLauncher ); |
62 |
|
|
63 |
NumberFormat format = NumberFormat.getNumberInstance(); |
NumberFormat format = NumberFormat.getNumberInstance(); |
72 |
fetcher = new DepartureFetcher(); |
fetcher = new DepartureFetcher(); |
73 |
if (savedInstanceState == null) { |
if (savedInstanceState == null) { |
74 |
showDialog(DLG_PROGRESS); |
showDialog(DLG_PROGRESS); |
75 |
fetcher.execute(name); |
fetcher.execute(code); |
76 |
} else { |
} else { |
77 |
departures = (List<DepartureBean>) savedInstanceState.getSerializable("departures"); |
departures = (List<DepartureBean>) savedInstanceState.getSerializable("departures"); |
78 |
adapter.setDepartures(departures); |
adapter.setDepartures(departures); |