--- android/TrainInfo/src/dk/thoerup/traininfo/DepartureListAdapter.java 2009/08/09 12:12:33 243 +++ android/TrainInfo/src/dk/thoerup/traininfo/DepartureListAdapter.java 2009/08/09 17:46:09 244 @@ -7,6 +7,7 @@ import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; +import android.widget.ImageView; import android.widget.TextView; public class DepartureListAdapter extends BaseAdapter { @@ -57,6 +58,11 @@ ((TextView) root.findViewById(R.id.Time)).setText(station.getTime()); ((TextView) root.findViewById(R.id.Destination)).setText(station.getDestination()); + if (station.getStatus().length() > 0 || station.getNote().length() > 0) { + ImageView image = (ImageView) root.findViewById(R.id.Icon); + image.setImageResource(R.drawable.info20); + } + return root; }