diff options
author | ByteHamster <info@bytehamster.com> | 2018-07-25 16:23:20 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-07-25 16:23:20 +0200 |
commit | 66fc848fe9907e26d1ec8237a3176da085fa360a (patch) | |
tree | 077f3f3b885d2c08a0be27048efbe423c7c9ff43 /app | |
parent | 901bc6c774d841f44ccc11caedcb7163312e098d (diff) | |
download | AntennaPod-66fc848fe9907e26d1ec8237a3176da085fa360a.zip |
Fixed options menu persisting (Closes #2776)
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java index c050221e1..a243ddcdc 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java @@ -66,4 +66,15 @@ public class AddFeedFragment extends Fragment { return root; } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setRetainInstance(true); + + // So, we certainly *don't* have an options menu, + // but unless we say we do, old options menus sometimes + // persist. mfietz thinks this causes the ActionBar to be invalidated + setHasOptionsMenu(true); + } } |