Created
December 6, 2017 16:38
-
-
Save jamesmontemagno/c945fb4629bbc73e83e2c64d40549993 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import hellosharedui.droid.UIHelpers; | |
try { | |
UIHelpers helpers = new UIHelpers(); | |
Fragment frag = helpers.getMyPageFragment(MainActivity.this); | |
FragmentManager manager = getSupportFragmentManager(); | |
manager.beginTransaction().replace(R.id.fragment, frag, "main").commit(); | |
} | |
catch(Throwable ex) { | |
Log.d("MainActivity", "Unable to replace fragment"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment