use of cl.smartcities.isci.transportinspector.dialogs.ReportBusListDialog in project androidApp by InspectorIncognito.
the class BusStopEventBuilder method buildIncompleteReport.
@Override
public void buildIncompleteReport(IncompleteReportEventDrawableItem incompleteReportPanelItem) {
final ServerSentEvent event = new ServerSentEvent(incompleteReportPanelItem);
ReportBusListDialog dialog = new ReportBusListDialog();
dialog.setServices(busStop.getServices());
dialog.setListener(new CustomArrayAdapter.ItemClickListener<String>() {
@Override
public void onItemClick(String service) {
Log.d("BusStopEventBuilder", service + ", " + event);
listener.onRequestReady(new BusStopEventRequest(listener, event, busStop, service), busStop.getId());
}
});
dialog.show(context.getSupportFragmentManager(), "services");
}
Aggregations