some tweeks to visibility to prevent some rendering bugs
This commit is contained in:
parent
27544266a4
commit
bcd42dd9d8
|
@ -16,9 +16,6 @@ import java.lang.ref.WeakReference;
|
|||
import de.danoeh.antennapod.activity.MainActivity;
|
||||
import de.danoeh.antennapod.core.glide.ApGlideSettings;
|
||||
|
||||
/**
|
||||
* Created by Tom on 3/29/16.
|
||||
*/
|
||||
class CoverTarget extends GlideDrawableImageViewTarget {
|
||||
|
||||
private final WeakReference<Uri> fallback;
|
||||
|
|
|
@ -93,6 +93,10 @@ public class SubscriptionsAdapter extends BaseAdapter implements AdapterView.OnI
|
|||
|
||||
if (position == ADD_POSITION) {
|
||||
holder.feedTitle.setText(R.string.add_feed_label);
|
||||
holder.feedTitle.setVisibility(View.VISIBLE);
|
||||
// prevent any accidental re-use of old values (not sure how that would happen...)
|
||||
holder.count.setPrimaryText("");
|
||||
// make it go away, we don't need it for add feed
|
||||
holder.count.setVisibility(View.INVISIBLE);
|
||||
Glide.with(mainActivityRef.get())
|
||||
.load(R.drawable.ic_add_grey_600_48dp)
|
||||
|
@ -105,8 +109,9 @@ public class SubscriptionsAdapter extends BaseAdapter implements AdapterView.OnI
|
|||
if (feed == null) return null;
|
||||
|
||||
holder.feedTitle.setText(feed.getTitle());
|
||||
holder.count.setVisibility(View.VISIBLE);
|
||||
holder.feedTitle.setVisibility(View.VISIBLE);
|
||||
holder.count.setPrimaryText(String.valueOf(itemAccess.getFeedCounter(feed.getId())));
|
||||
holder.count.setVisibility(View.VISIBLE);
|
||||
Glide.with(mainActivityRef.get())
|
||||
.load(feed.getImageUri())
|
||||
.error(R.color.light_gray)
|
||||
|
|
Loading…
Reference in New Issue