Fix transport activity

This commit is contained in:
Victor Shcherb 2013-05-23 23:42:51 +02:00
parent 992b0d6e0e
commit 13467cca7a

View file

@ -104,11 +104,12 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
progress.setVisibility(View.INVISIBLE);
stopsAdapter = new TransportStopAdapter(new ArrayList<RouteInfoLocation>());
((ListView) view.findViewById(android.R.id.list)).setAdapter(stopsAdapter);
((ListView) view.findViewById(android.R.id.list)).setOnItemClickListener(this);
ListView intermediateList = (ListView) view.findViewById(R.id.listView);
intermediateListAdapater = new TransportRouteAdapter(TransportRouteHelper.getInstance().getRoute());
intermediateList.setOnItemClickListener(this);
intermediateList.setAdapter(intermediateListAdapater);
if(intermediateList.getCount() == 0){
intermediateListAdapater.add(null);
}