Skip to content

Instantly share code, notes, and snippets.

@Cutta
Created December 21, 2017 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cutta/1a799df804cd42adc6cc68cce1aabedc to your computer and use it in GitHub Desktop.
Save Cutta/1a799df804cd42adc6cc68cce1aabedc to your computer and use it in GitHub Desktop.
fun FragmentManager.show(containerId: Int, fragment: Fragment, backstack: String? = null) {
beginTransaction()
.replace(containerId, fragment)
.addToBackStack(backstack)
.commit()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment