Skip to content

Instantly share code, notes, and snippets.

@radityagumay
Last active December 6, 2017 16:49
Show Gist options
  • Save radityagumay/70bb899d628d2e8a310d7c6a2222b2f0 to your computer and use it in GitHub Desktop.
Save radityagumay/70bb899d628d2e8a310d7c6a2222b2f0 to your computer and use it in GitHub Desktop.
override fun setupView(view: View?) {
safeWith(arguments) { arguments ->
safeWitCouple(zoo, arguments.getParcelable(ZOO), poo, arguments.getParcelable(POO)) { zoo, poo, fromIntent ->
this@Foo.zoo = zoo as World.Zoo
this@Foo.poo = poo as World.Poo
if (fromIntent) {
arguments.remove(ZOO)
arguments.remove(POO)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment