public void pop(){
  Fragment poppingFrag=getCurrentFrag();
  if (poppingFrag != null) {
    FragmentTransaction ft=mFragmentManager.beginTransaction();
    ft.setTransition(mTransitionMode);
    ft.remove(poppingFrag);
    Stack<Fragment> fragmentStack=mFragmentStacks.get(mSelectedTabIndex);
    if (!fragmentStack.isEmpty()) {
      fragmentStack.pop();
    }
    Fragment fragment=reattachPreviousFragment(ft);
    if (fragment == null && !fragmentStack.isEmpty()) {
      fragment=fragmentStack.peek();
      ft.add(mContainerId,fragment,fragment.getTag());
    }
    ft.commit();
    mFragmentManager.executePendingTransactions();
    mCurrentFrag=fragment;
    if (mNavListener != null) {
      mNavListener.onFragmentTransaction(mCurrentFrag);
    }
  }
}

public void pop ( ) { Fragment poppingFrag = getCurrentFrag ( ) ; if ( poppingFrag != null ) { FragmentTransaction ft = mFragmentManager . beginTransaction ( ) ; ft . setTransition ( mTransitionMode ) ; ft . remove ( poppingFrag ) ; Stack < Fragment > fragmentStack = mFragmentStacks . get ( mSelectedTabIndex ) ; if ( ! fragmentStack . isEmpty ( ) ) { fragmentStack . pop ( ) ; } Fragment fragment = reattachPreviousFragment ( ft ) ; if ( fragment == null && ! fragmentStack . isEmpty ( ) ) { fragment = fragmentStack . peek ( ) ; ft . add ( mContainerId , fragment , fragment . getTag ( ) ) ; } ft . commit ( ) ; mFragmentManager . executePendingTransactions ( ) ; mCurrentFrag = fragment ; if ( mNavListener != null ) { mNavListener . onFragmentTransaction ( mCurrentFrag ) ; } } }
pop the current fragment from the current tab
