diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/adapter/PodcastChannelAdapter.java | 2 | ||||
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/adapter/PodcastChannelAdapter.java b/app/src/main/java/github/daneren2005/dsub/adapter/PodcastChannelAdapter.java index d9290f49..de4dffa6 100644 --- a/app/src/main/java/github/daneren2005/dsub/adapter/PodcastChannelAdapter.java +++ b/app/src/main/java/github/daneren2005/dsub/adapter/PodcastChannelAdapter.java @@ -166,6 +166,8 @@ public class PodcastChannelAdapter extends SectionAdapter<Serializable> implemen } }); toggleSelectionView.setImageResource(DrawableTint.getDrawableRes(context, selectToggleAttr)); + } else { + toggleSelectionView.setVisibility(View.GONE); } } else { display = context.getResources().getString(R.string.select_podcasts_channels); diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java index d605cecd..a76470dd 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java @@ -147,7 +147,7 @@ public class SelectPodcastsFragment extends SelectRecyclerFragment<Serializable> List<Serializable> serializableEpisodes = new ArrayList<>(); // Put 3 in current list - while(serializableEpisodes.size() < 3) { + while(serializableEpisodes.size() < 3 && !episodes.isEmpty()) { serializableEpisodes.add(episodes.remove(0)); } |