Merge pull request #2779 from ByteHamster/fix-options-menu

Fixed options menu persisting (Closes #2776)
This commit is contained in:
H. Lehmann 2018-07-25 23:16:12 +02:00 committed by GitHub
commit ab00912f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

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