Fix transport activity
This commit is contained in:
parent
992b0d6e0e
commit
13467cca7a
1 changed files with 2 additions and 1 deletions
|
@ -104,11 +104,12 @@ public class SearchTransportFragment extends SherlockFragment implements SearchA
|
||||||
progress.setVisibility(View.INVISIBLE);
|
progress.setVisibility(View.INVISIBLE);
|
||||||
stopsAdapter = new TransportStopAdapter(new ArrayList<RouteInfoLocation>());
|
stopsAdapter = new TransportStopAdapter(new ArrayList<RouteInfoLocation>());
|
||||||
((ListView) view.findViewById(android.R.id.list)).setAdapter(stopsAdapter);
|
((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);
|
ListView intermediateList = (ListView) view.findViewById(R.id.listView);
|
||||||
intermediateListAdapater = new TransportRouteAdapter(TransportRouteHelper.getInstance().getRoute());
|
intermediateListAdapater = new TransportRouteAdapter(TransportRouteHelper.getInstance().getRoute());
|
||||||
intermediateList.setOnItemClickListener(this);
|
|
||||||
intermediateList.setAdapter(intermediateListAdapater);
|
intermediateList.setAdapter(intermediateListAdapater);
|
||||||
|
|
||||||
if(intermediateList.getCount() == 0){
|
if(intermediateList.getCount() == 0){
|
||||||
intermediateListAdapater.add(null);
|
intermediateListAdapater.add(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue