Updated search favorites group text

This commit is contained in:
Denis 2015-02-13 17:00:33 +02:00
parent b45c0d2808
commit 85cf8e9148

View file

@ -182,6 +182,13 @@ public class FavoritesListFragment extends ListFragment implements SearchActivit
TextView label = (TextView) row.findViewById(R.id.favourite_label);
ImageView icon = (ImageView) row.findViewById(R.id.favourite_icon);
final FavouritePoint model = getItem(position);
if (!model.getCategory().isEmpty()){
row.findViewById(R.id.group_image).setVisibility(View.VISIBLE);
} else {
row.findViewById(R.id.group_image).setVisibility(View.GONE);
}
((TextView) row.findViewById(R.id.group_name)).setText(model.getCategory());
icon.setImageDrawable(FavoriteImageDrawable.getOrCreate(activity, model.getColor()));
String distance = "";
if (location != null) {