diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2021-03-08 10:23:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 10:23:04 +0100 |
commit | 9a5f234180c8612bf71deec7511b2839621a586f (patch) | |
tree | f25c374e139f996fee6cb17ee870dc51b486f55a | |
parent | a49b4477a9abd6fdebb1241ba25d0e69975203a7 (diff) | |
parent | e85fab3b305aeae74bbabeade7a13e3ad444efad (diff) | |
download | AntennaPod-9a5f234180c8612bf71deec7511b2839621a586f.zip |
Merge pull request #5008 from trevortabaka/fix-gpodder-category-crash
Fix crash when selecting gpodder.net category
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/gpodnet/TagFragment.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/gpodnet/TagFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/gpodnet/TagFragment.java index 0ce38656a..b60f1bed2 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/gpodnet/TagFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/gpodnet/TagFragment.java @@ -1,17 +1,15 @@ package de.danoeh.antennapod.fragment.gpodnet; import android.os.Bundle; -import androidx.annotation.Nullable; + +import org.apache.commons.lang3.Validate; + +import java.util.List; import de.danoeh.antennapod.core.sync.gpoddernet.GpodnetService; import de.danoeh.antennapod.core.sync.gpoddernet.GpodnetServiceException; import de.danoeh.antennapod.core.sync.gpoddernet.model.GpodnetPodcast; import de.danoeh.antennapod.core.sync.gpoddernet.model.GpodnetTag; -import org.apache.commons.lang3.Validate; - -import de.danoeh.antennapod.activity.MainActivity; - -import java.util.List; /** * Shows all podcasts from gpodder.net that belong to a specific tag. @@ -43,12 +41,6 @@ public class TagFragment extends PodcastListFragment { } @Override - public void onActivityCreated(@Nullable Bundle savedInstanceState) { - super.onActivityCreated(savedInstanceState); - ((MainActivity) getActivity()).getSupportActionBar().setTitle(tag.getTitle()); - } - - @Override protected List<GpodnetPodcast> loadPodcastData(GpodnetService service) throws GpodnetServiceException { return service.getPodcastsForTag(tag, PODCAST_COUNT); } |