222 |
if (success) { |
if (success) { |
223 |
adapter.setDepartures(departures); |
adapter.setDepartures(departures); |
224 |
if (departures.size() == 0) { |
if (departures.size() == 0) { |
225 |
MessageBox.showMessage(DepartureList.this, "No departures found"); |
MessageBox.showMessage(DepartureList.this, "No departures found", true); |
226 |
} |
} |
227 |
} else { // communication or parse error |
} else { // communication or parse error |
228 |
AlertDialog.Builder builder = new AlertDialog.Builder(DepartureList.this); |
AlertDialog.Builder builder = new AlertDialog.Builder(DepartureList.this); |
238 |
builder.setNegativeButton(getString(generic_cancel), new DialogInterface.OnClickListener() { |
builder.setNegativeButton(getString(generic_cancel), new DialogInterface.OnClickListener() { |
239 |
public void onClick(DialogInterface dialog, int id) { |
public void onClick(DialogInterface dialog, int id) { |
240 |
dialog.dismiss(); |
dialog.dismiss(); |
241 |
|
DepartureList.this.finish(); |
242 |
} |
} |
243 |
}); |
}); |
244 |
|
|