Fix of no icons.
parent
0b861b0881
commit
94d57f6c46
|
@ -60,11 +60,12 @@ public class PlacesAdapter extends ArrayAdapter<GooglePlaceResult> {
|
|||
ImageView placePreviewWidget = (ImageView)resultView.findViewById(R.id.place_img_preview);
|
||||
placePreviewWidget.setImageBitmap(BitmapFactory.decodeResource(getContext().getResources(), R.drawable.noimage));
|
||||
|
||||
|
||||
if (photoUrl != null ) {
|
||||
ImageLoader.getInstance().displayImage(
|
||||
photoUrl != null ? photoUrl : item.getIcon(),
|
||||
photoUrl,
|
||||
placePreviewWidget,
|
||||
MainActivity.options);
|
||||
}
|
||||
|
||||
resultView.setTag(item.getId());
|
||||
|
||||
|
|
Loading…
Reference in New Issue