use of org.aisen.android.ui.fragment.APagingFragment in project AisenWeiBo by wangdan.
the class MainActivity method onMenuSameClicked.
@Override
public boolean onMenuSameClicked(MenuFragment.NavMenuItem item) {
invalidateOptionsMenu();
// 重复点击了通知
if (item.id == MenuFragment.MENU_NOTIFICATION) {
Fragment fragment = getFragmentManager().findFragmentByTag("MainFragment");
if (fragment instanceof ATabsTabLayoutFragment && newIntentNotificationIndex != -1) {
ATabsTabLayoutFragment tabsTabLayoutFragment = (ATabsTabLayoutFragment) fragment;
tabsTabLayoutFragment.getViewPager().setCurrentItem(newIntentNotificationIndex);
((APagingFragment) tabsTabLayoutFragment.getCurrentFragment()).requestDataDelaySetRefreshing(AppSettings.REQUEST_DATA_DELAY);
newIntentNotificationIndex = -1;
}
}
closeDrawer();
return true;
}
use of org.aisen.android.ui.fragment.APagingFragment in project AisenWeiBo by wangdan.
the class TimelineDetailPagerFragment method onRefresh.
@Override
public void onRefresh() {
APagingFragment fragment = (APagingFragment) getCurrentFragment();
onRefresh(fragment);
}
Aggregations