Code example for ActionMode

Methods: finish

0
            if (mLastPosition != TAB_POS_SETTINGS) {
                UpdatesFragment frag = findFragmentByPosition(mLastPosition);
                if (frag != null) {
                    ActionMode actionMode = frag.getChildActionMode();
                    if (actionMode != null) {
                        actionMode.finish();
                    } 
                } 
            } 
            mLastPosition = position;
        } 
 
        public void onTabSelected(Tab tab, FragmentTransaction ft) {
            Object tag = tab.getTag();
            for (int i=0; i<mTabs.size(); i++) {
                if (mTabs.get(i) == tag) {
                    mViewPager.setCurrentItem(i);
                } 
            } 
        }