/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1571 by torben, Sat Jul 9 08:31:26 2011 UTC revision 1572 by torben, Sat Jul 9 09:45:40 2011 UTC
# Line 199  public class WelcomeScreen extends Activ Line 199  public class WelcomeScreen extends Activ
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);

Legend:
Removed from v.1571  
changed lines
  Added in v.1572

  ViewVC Help
Powered by ViewVC 1.1.20