use of org.qii.weiciyuan.ui.search.SearchMainParentFragment in project weiciyuan by qii.
the class LeftMenuFragment method showSearchPageImp.
private void showSearchPageImp() {
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.hide(rightFragments.get(HOME_INDEX));
ft.hide(rightFragments.get(MENTIONS_INDEX));
ft.hide(rightFragments.get(COMMENTS_INDEX));
ft.hide(rightFragments.get(DM_INDEX));
ft.hide(rightFragments.get(FAV_INDEX));
ft.hide(rightFragments.get(PROFILE_INDEX));
Fragment fragment = rightFragments.get(SEARCH_INDEX);
if (firstStart) {
int navPosition = GlobalContext.getInstance().getAccountBean().getNavigationPosition() / 10;
if (navPosition == SEARCH_INDEX) {
searchTabIndex = GlobalContext.getInstance().getAccountBean().getNavigationPosition() % 10;
}
}
fragment.getArguments().putInt("searchTabIndex", searchTabIndex);
ft.show(fragment);
ft.commit();
((SearchMainParentFragment) fragment).buildActionBarAndViewPagerTitles(searchTabIndex);
}
Aggregations