diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-04-03 14:51:16 -0400 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-04-03 14:51:16 -0400 |
commit | 8deb1860e27b325de8444b38c22f41bedd8085bf (patch) | |
tree | 8eb09ccf45e7e6e7b99ac472e3349f2eaed3988e /app/src/main/java/de/danoeh/antennapod/adapter | |
parent | 0aed6ce38309d93079ddfa9384dfa0d55bb7512f (diff) | |
download | AntennaPod-8deb1860e27b325de8444b38c22f41bedd8085bf.zip |
'All Episodes' by default now only shows new episodes.
The user can still easily show all episodes via the menu.
The view also now greys out the background for any non-new episodes.
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java index 1f98ec158..2dd76ed27 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java @@ -1,6 +1,7 @@ package de.danoeh.antennapod.adapter; import android.content.Context; +import android.graphics.Color; import android.text.format.DateUtils; import android.view.LayoutInflater; import android.view.View; @@ -139,6 +140,11 @@ public class NewEpisodesListAdapter extends BaseAdapter { .fit() .into(holder.imageView); + if (item.isRead()) { + // grey it out + convertView.setBackgroundColor(Color.GRAY); + } + return convertView; } |