199 |
|
|
200 |
@Override |
@Override |
201 |
public void onClick(View v) { |
public void onClick(View v) { |
202 |
|
|
203 |
|
StationProvider sp = ProviderFactory.getStationProvider(); |
204 |
|
|
205 |
|
if (sp instanceof OfflineStationProvider ) { |
206 |
|
OfflineStationProvider osp = (OfflineStationProvider) sp; |
207 |
|
|
208 |
|
if (! osp.hasStations()) { |
209 |
|
stationLoader = new StationLoader(osp); |
210 |
|
stationLoader.execute( (Void)null); |
211 |
|
return; |
212 |
|
} |
213 |
|
} |
214 |
|
|
215 |
Intent intent = new Intent(WelcomeScreen.this, StationList.class); |
Intent intent = new Intent(WelcomeScreen.this, StationList.class); |
216 |
intent.putExtra("type", launchType); |
intent.putExtra("type", launchType); |
217 |
WelcomeScreen.this.startActivity(intent); |
WelcomeScreen.this.startActivity(intent); |