diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-11-15 22:05:02 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-11-15 22:05:02 +0100 |
commit | 41e4e678f6aab49646c0311706874a89fec562f2 (patch) | |
tree | c03580616444f308cbef182a01884cc51ffd01b7 /app | |
parent | 689c5b2fe4ec84710c7a407de3216deee9d42dcf (diff) | |
download | AntennaPod-41e4e678f6aab49646c0311706874a89fec562f2.zip |
Fixed a couple of NullpointerException in TagFragment
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/gpodnet/TagFragment.java | 7 |
1 files changed, 3 insertions, 4 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 d39b69b3b..c8cdbcfed 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,7 +1,7 @@ package de.danoeh.antennapod.fragment.gpodnet; -import android.app.Activity; import android.os.Bundle; +import android.support.annotation.Nullable; import org.apache.commons.lang3.Validate; @@ -39,13 +39,12 @@ public class TagFragment extends PodcastListFragment { Bundle args = getArguments(); Validate.isTrue(args != null && args.getString("tag") != null, "args invalid"); - tag = new GpodnetTag(args.getString("tag")); } @Override - public void onAttach(Activity activity) { - super.onAttach(activity); + public void onActivityCreated(@Nullable Bundle savedInstanceState) { + super.onActivityCreated(savedInstanceState); ((MainActivity) getActivity()).getMainActivtyActionBar().setTitle(tag.getName()); } |