Last active
February 2, 2017 17:27
-
-
Save stMayhem/bc2b3a3f7f320e3b3d0e4e5057b57d21 to your computer and use it in GitHub Desktop.
Fragment to activity
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
TaskDetailFragment taskDetailFragment = (TaskDetailFragment) getSupportFragmentManager() | |
.findFragmentById(R.id.contentFrame); | |
if (taskDetailFragment == null) { | |
taskDetailFragment = TaskDetailFragment.newInstance(taskId); | |
ActivityUtils.addFragmentToActivity(getSupportFragmentManager(), | |
taskDetailFragment, R.id.contentFrame); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment