4 |
import java.util.List; |
import java.util.List; |
5 |
|
|
6 |
|
|
7 |
|
import android.app.Activity; |
8 |
import android.app.AlertDialog; |
import android.app.AlertDialog; |
9 |
import android.app.Dialog; |
import android.app.Dialog; |
10 |
import android.app.ListActivity; |
import android.app.ListActivity; |
70 |
StationsFetchedHandler stationsFetched = new StationsFetchedHandler(); |
StationsFetchedHandler stationsFetched = new StationsFetchedHandler(); |
71 |
|
|
72 |
GeoPair location = new GeoPair(); |
GeoPair location = new GeoPair(); |
73 |
|
|
74 |
|
boolean isLaunchedforShortcut; |
75 |
boolean isRunning = false; |
boolean isRunning = false; |
76 |
List<StationBean> stations = new ArrayList<StationBean>(); |
List<StationBean> stations = new ArrayList<StationBean>(); |
77 |
|
|
113 |
listType = (WelcomeScreen.ListType) getIntent().getSerializableExtra("type"); |
listType = (WelcomeScreen.ListType) getIntent().getSerializableExtra("type"); |
114 |
setTitle(); |
setTitle(); |
115 |
|
|
116 |
|
isLaunchedforShortcut = getIntent().getBooleanExtra("shortcut", false); |
117 |
|
|
118 |
if (savedInstanceState == null) { |
if (savedInstanceState == null) { |
119 |
|
|
120 |
|
|
358 |
|
|
359 |
StationBean station = stations.get(position); |
StationBean station = stations.get(position); |
360 |
|
|
361 |
Intent intent = new Intent(this, DepartureList.class); |
if (isLaunchedforShortcut == true) { |
362 |
intent.putExtra("stationbean", station); |
Intent i = new Intent(); |
363 |
startActivity(intent); |
i.putExtra("station", station); |
364 |
|
setResult(Activity.RESULT_OK, i); |
365 |
|
finish(); |
366 |
|
} else { |
367 |
|
Intent intent = new Intent(this, DepartureList.class); |
368 |
|
intent.putExtra("stationbean", station); |
369 |
|
startActivity(intent); |
370 |
|
} |
371 |
} |
} |
372 |
|
|
373 |
///////////////////////////////////////////////////////////// |
///////////////////////////////////////////////////////////// |