Created
October 25, 2016 13:17
-
-
Save hoolrory/d66f38c82f3f51fdeec0c5145c9586b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void showFragment( Fragment frag, boolean addToBackStack ) { | |
FragmentTransaction t = getSupportFragmentManager().beginTransaction(); | |
t.replace( R.id.fragment_frame, frag, null ); | |
if ( addToBackStack ) { | |
t.addToBackStack( null ); | |
} | |
t.commit(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment