Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Hardware Menu Button Causing Problems With Child Fragments Menus #1030

Open
jay8ee opened this issue Sep 2, 2013 · 1 comment
Open

Hardware Menu Button Causing Problems With Child Fragments Menus #1030

jay8ee opened this issue Sep 2, 2013 · 1 comment

Comments

@jay8ee
Copy link

jay8ee commented Sep 2, 2013

I have a main sherlock activity, which swaps full screen fragments in and out of a frame layout. One of these fragments has a FragmentStatePagerAdapter which hosts some other fragments.

On most devices, this works just fine, when I scroll between fragments in the pager the menu items update in the action bar as you would expect. However when I run the app on a device with a hardware menu button the menu items don't appear until either I press the menu button, or I scroll to another fragment and back again.

Here are some screens:
Screen 1, Fragment showing with a pager. The child fragment has menu items, but they aren't showing.
screenshot_2013-09-02-22-01-07

Screen 2, The menu items have appeared in the action bar no that the overflow has been opened by pressing the menu button.
screenshot_2013-09-02-22-10-28

Any ideas what this could be?

@f2prateek
Copy link

Can you post the relevant code?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants