private void detachCurrentFragment(FragmentTransaction ft){
  Fragment oldFrag=getCurrentFrag();
  if (oldFrag != null) {
    ft.detach(oldFrag);
  }
}

private void detachCurrentFragment ( FragmentTransaction ft ) { Fragment oldFrag = getCurrentFrag ( ) ; if ( oldFrag != null ) { ft . detach ( oldFrag ) ; } }
attemps to detach any current fragment if it exists , and if none is found , returns ;
