/[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 381 by torben, Fri Oct 2 10:39:09 2009 UTC revision 401 by torben, Tue Oct 6 19:13:34 2009 UTC
# Line 140  public class StationList extends ListAct Line 140  public class StationList extends ListAct
140                  case OPTIONS_ABOUT:                  case OPTIONS_ABOUT:
141                          String ver = this.getResources().getString(R.string.app_version);                          String ver = this.getResources().getString(R.string.app_version);
142                                                    
143                            Location loc = locator.getLocation();
144                          StringBuffer message = new StringBuffer();                          StringBuffer message = new StringBuffer();
145                          message.append("TrainInfo DK v").append(ver).append("\n");                          message.append("TrainInfo DK v").append(ver).append("\n");
146                          message.append("By Torben Nielsen\n");                          message.append("By Torben Nielsen\n");
147                            message.append("\n");
148                            message.append("Location info:\n");
149                            message.append("-Obtained by: ").append(loc != null ? loc.getProvider() : "-").append("\n");
150                            message.append("-Accuracy: ").append(loc != null ? (int)loc.getAccuracy() : "-").append("m\n");
151    
152                          MessageBox.showMessage(this, message.toString());                          MessageBox.showMessage(this, message.toString());
153                          break;                          break;
# Line 178  public class StationList extends ListAct Line 183  public class StationList extends ListAct
183                                          if (et.getText().toString().length() >= 2) {                                          if (et.getText().toString().length() >= 2) {
184                                                  startNameSearch(et.getText().toString());                                                  startNameSearch(et.getText().toString());
185                                          } else {                                          } else {
186                                                  MessageBox.showMessage(StationList.this, "To characters, minimum" );                                                  MessageBox.showMessage(StationList.this, "Two characters minimum" );
187                                          }                                          }
188                                  }                                  }
189                          });                          });

Legend:
Removed from v.381  
changed lines
  Added in v.401

  ViewVC Help
Powered by ViewVC 1.1.20