Skip to content

Instantly share code, notes, and snippets.

@calvinnor
Last active October 2, 2019 07:28
Show Gist options
  • Save calvinnor/2cc821bb16b5c7e03f5b8ea7caf3808e to your computer and use it in GitHub Desktop.
Save calvinnor/2cc821bb16b5c7e03f5b8ea7caf3808e to your computer and use it in GitHub Desktop.
fun newInstance(playersDetails: Pair<PlayerDetails, PlayerDetails>) =
GameFragment().apply {
arguments = Bundle().apply {
putParcelable(ARGS_GAME_STATE, buildNewGame(playersDetails.first, playersDetails.second))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment