public void reattach ( String tag ) { final Fragment currentFragment = ( Fragment ) peek ( tag ) ; FragmentTransaction fragTransaction = fm . beginTransaction ( ) ; fragTransaction . detach ( currentFragment ) ; fragTransaction . attach ( currentFragment ) ; fragTransaction . commit ( ) ; }
Reattaches a Fragment