ActionBarSherlock icon indicating copy to clipboard operation
ActionBarSherlock copied to clipboard

ActionBar menu not working on first slide to second page

Open lemval opened this issue 11 years ago • 1 comments

When you use the actionbar (and viewpager) on Android 2.x, and you first slide to a second view, the actionbar menu buttons do not work right away but work only after another action has taken place.

See also #570, including comments.

This issue only occurs on 2.x versions of Android. Version 3 and 4 of Android do not show this issue.

To reproduce:

  • Open the application below (code and apk available)
  • Slide directly to the second tab (either click on the indicator or swipe)
  • Hit a button with icon at the right top of the action bar
  • The view associated with the action does not show; nothing happens
  • Hit the Android menu button or navigate back to the first tab
  • The first tab view shows, followed instantly by the view associated by the previous action.

Find a bare project (without the required viewpager and actionbar) and apk via: http://home.caiway.nl/~lemval/pub/ActionBarSherlockBug%204.zip

lemval avatar Jan 24 '13 05:01 lemval

The reason we ask for it to be on the dev branch is that it requires no setup on our part to load it up in an idea and start debugging. Zip packages and code snippets really just get overlooked until we some day decide to crunch through some bugs.

SimonVT avatar Jan 24 '13 07:01 SimonVT