Changes
This commit is contained in:
parent
2e7f4b632d
commit
f8e1d45526
@ -226,7 +226,6 @@ public abstract class AbstractMathEntityListFragment<T extends MathEntity> exten
|
|||||||
|
|
||||||
if (convertView == null) {
|
if (convertView == null) {
|
||||||
result = (ViewGroup) super.getView(position, convertView, parent);
|
result = (ViewGroup) super.getView(position, convertView, parent);
|
||||||
|
|
||||||
fillView(position, result);
|
fillView(position, result);
|
||||||
} else {
|
} else {
|
||||||
result = (ViewGroup) convertView;
|
result = (ViewGroup) convertView;
|
||||||
@ -240,6 +239,9 @@ public abstract class AbstractMathEntityListFragment<T extends MathEntity> exten
|
|||||||
private void fillView(int position, @NotNull ViewGroup result) {
|
private void fillView(int position, @NotNull ViewGroup result) {
|
||||||
final T mathEntity = getItem(position);
|
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());
|
final String mathEntityDescription = descriptionGetter.getDescription(getContext(), mathEntity.getName());
|
||||||
if (!StringUtils.isEmpty(mathEntityDescription)) {
|
if (!StringUtils.isEmpty(mathEntityDescription)) {
|
||||||
final TextView description = (TextView) result.findViewById(R.id.math_entity_description);
|
final TextView description = (TextView) result.findViewById(R.id.math_entity_description);
|
||||||
|
Loading…
Reference in New Issue
Block a user