'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.
This commit is contained in:
Tom Hennen 2015-04-03 14:51:16 -04:00
parent 0aed6ce383
commit 8deb1860e2
2 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -379,7 +379,7 @@ public class NewEpisodesFragment extends Fragment {
private void updateShowOnlyEpisodes() {
SharedPreferences prefs = getActivity().getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
showOnlyNewEpisodes = prefs.getBoolean(PREF_EPISODE_FILTER_BOOL, false);
showOnlyNewEpisodes = prefs.getBoolean(PREF_EPISODE_FILTER_BOOL, true);
}
private void setShowOnlyNewEpisodes(boolean newVal) {