Last active
June 15, 2019 12:50
-
-
Save robertlevonyan/92e0284a3afa065175f60ea28839e8a0 to your computer and use it in GitHub Desktop.
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
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
arguments?.let { | |
val args = MessageListFragmentArgs.fromBundle(it) | |
val userId = args.userId | |
} | |
... | |
} |
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
val args: MessageListFragmentArgs by navArgs() // if you are using KTX (add -ktx at the end of dependencies) | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
val userId = args.userId | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment