496 |
public void onClick(DialogInterface dialog, int id) { |
public void onClick(DialogInterface dialog, int id) { |
497 |
dialog.dismiss(); |
dialog.dismiss(); |
498 |
|
|
499 |
stationsFetched.post( new Runnable() { |
Runnable runner = null; |
500 |
@Override |
switch (method) { |
501 |
public void run() { |
case ByLocation: |
502 |
startLocatorTask(); |
runner = new Runnable() { |
503 |
} |
@Override |
504 |
}); |
public void run() { |
505 |
|
startLocatorTask(); |
506 |
|
} |
507 |
|
}; |
508 |
|
break; |
509 |
|
case ByName: |
510 |
|
runner = new Runnable() { |
511 |
|
@Override |
512 |
|
public void run() { |
513 |
|
startNameSearch( FindStationsTask.this.name ); |
514 |
|
} |
515 |
|
}; |
516 |
|
break; |
517 |
|
case ByList: |
518 |
|
runner = new Runnable() { |
519 |
|
@Override |
520 |
|
public void run() { |
521 |
|
startFavoriteLookup(); |
522 |
|
} |
523 |
|
}; |
524 |
|
break; |
525 |
|
} |
526 |
|
|
527 |
|
stationsFetched.post( runner ); |
528 |
} |
} |
529 |
}); |
}); |
530 |
builder.setNegativeButton(getString(generic_cancel), new DialogInterface.OnClickListener() { |
builder.setNegativeButton(getString(generic_cancel), new DialogInterface.OnClickListener() { |