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

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

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

revision 1143 by torben, Tue Sep 28 15:30:13 2010 UTC revision 1164 by torben, Wed Oct 6 10:42:51 2010 UTC
# Line 48  import android.os.AsyncTask; Line 48  import android.os.AsyncTask;
48  import android.os.Bundle;  import android.os.Bundle;
49  import android.os.Handler;  import android.os.Handler;
50  import android.os.Message;  import android.os.Message;
 import android.util.Log;  
51  import android.view.ContextMenu;  import android.view.ContextMenu;
52  import android.view.LayoutInflater;  import android.view.LayoutInflater;
53  import android.view.Menu;  import android.view.Menu;
# Line 432  public class StationList extends ListAct Line 431  public class StationList extends ListAct
431          class StationsFetchedHandler extends Handler {          class StationsFetchedHandler extends Handler {
432                  @Override                  @Override
433                  public void handleMessage(Message msg) {                  public void handleMessage(Message msg) {
                         Log.e("Handler", "WHAT:" + msg.what);  
434    
435                          LocationLookup.LookupStates state = locationLookup.getState();                          LocationLookup.LookupStates state = locationLookup.getState();
436    
# Line 475  public class StationList extends ListAct Line 473  public class StationList extends ListAct
473                                          builder.setNegativeButton( getString(generic_cancel), new DialogInterface.OnClickListener() {                                          builder.setNegativeButton( getString(generic_cancel), new DialogInterface.OnClickListener() {
474                                                  public void onClick(DialogInterface dialog, int id) {                                                  public void onClick(DialogInterface dialog, int id) {
475                                                          dialog.dismiss();                                                          dialog.dismiss();
476                                                            StationList.this.finish(); // Close this Activity
477                                                  }                                                                                                        }                                                      
478                                          });                                          });
479                                          builder.show();                                          builder.show();
# Line 532  public class StationList extends ListAct Line 531  public class StationList extends ListAct
531    
532                          switch (method) {                          switch (method) {
533                          case ByLocation:                          case ByLocation:
534                                  stations = stationProvider.lookupStations(loc);                                  stations = stationProvider.lookupStationsByLocation(loc);
535                                  break;                                  break;
536                          case ByName:                          case ByName:
537                                  stations = stationProvider.lookupStationsByName(name);                                  stations = stationProvider.lookupStationsByName(name);

Legend:
Removed from v.1143  
changed lines
  Added in v.1164

  ViewVC Help
Powered by ViewVC 1.1.20