Last Updated: February 25, 2016
·
2.835K
· adnaan

Android: Action Mode with Action Bar Sherlock

If you are using Action Modes with ABS, you have probably come across the issue of action modes not responding if there are multiples of them. I searched around but couldn't get a fix. Finally did the following fix:

modeHandler.postDelayed(new Runnable() {

                @Override
                public void run() {
                    newMode = startActionMode(newModeCallback);

                }
            }, 10);

You can follow the issue here: https://github.com/JakeWharton/ActionBarSherlock/issues/208