/** * Clear the unit selection for unit type fragment at position pos * * @param unitTypeFragPos the position of the desired unit type fragment * from which to clear selected units */ private void clearUnitSelection(int unitTypeFragPos) { ConvKeysFragment currFragAtPos = getConvKeyFrag(unitTypeFragPos); if (currFragAtPos != null) currFragAtPos.clearButtonSelection(); }
mUnitTypeViewPager.setCurrentItem(visibleUnitTypeIndex); } else { ConvKeysFragment frag = getConvKeyFrag(mUnitTypeViewPager.getCurrentItem()); if (frag != null) frag.selectUnitAtUnitArrayPos(unitPos);