Fix add tile

This commit is contained in:
Martin Fietz 2016-06-19 18:21:07 +02:00
parent dbd2ab5524
commit c9d0d497dd
1 changed files with 5 additions and 1 deletions

View File

@ -107,6 +107,10 @@ public class SubscriptionsAdapter extends BaseAdapter implements AdapterView.OnI
holder.count.setPrimaryText(""); holder.count.setPrimaryText("");
// make it go away, we don't need it for add feed // make it go away, we don't need it for add feed
holder.count.setVisibility(View.INVISIBLE); holder.count.setVisibility(View.INVISIBLE);
// when this holder is reused, we could else end up with a cover image
Glide.clear(holder.imageView);
return convertView; return convertView;
} }
@ -135,7 +139,7 @@ public class SubscriptionsAdapter extends BaseAdapter implements AdapterView.OnI
@Override @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if (position == ADD_POSITION) { if (position == getAddTilePosition()) {
mainActivityRef.get().loadChildFragment(new AddFeedFragment()); mainActivityRef.get().loadChildFragment(new AddFeedFragment());
} else { } else {
Fragment fragment = ItemlistFragment.newInstance(getItemId(position)); Fragment fragment = ItemlistFragment.newInstance(getItemId(position));