This commit is contained in:
Sergey Solovyev 2012-10-01 00:41:22 +04:00
parent 2e7f4b632d
commit f8e1d45526

View File

@ -226,7 +226,6 @@ public abstract class AbstractMathEntityListFragment<T extends MathEntity> exten
if (convertView == null) {
result = (ViewGroup) super.getView(position, convertView, parent);
fillView(position, result);
} else {
result = (ViewGroup) convertView;
@ -240,6 +239,9 @@ public abstract class AbstractMathEntityListFragment<T extends MathEntity> exten
private void fillView(int position, @NotNull ViewGroup result) {
final T mathEntity = getItem(position);
final TextView text = (TextView) result.findViewById(R.id.math_entity_text);
text.setText(String.valueOf(mathEntity));
final String mathEntityDescription = descriptionGetter.getDescription(getContext(), mathEntity.getName());
if (!StringUtils.isEmpty(mathEntityDescription)) {
final TextView description = (TextView) result.findViewById(R.id.math_entity_description);