Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #355 - Uses the generated Navigation directions
Browse files Browse the repository at this point in the history
  • Loading branch information
boek committed Feb 12, 2019
1 parent d8845dc commit a0ac6bf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ class LibraryFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)

libraryHistory.setOnClickListener {
Navigation.findNavController(it).navigate(R.id.action_libraryFragment_to_historyFragment)
}
libraryHistory.setOnClickListener(Navigation.createNavigateOnClickListener(
LibraryFragmentDirections.actionLibraryFragmentToHistoryFragment().actionId,
null)
)
}

override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
Expand Down

0 comments on commit a0ac6bf

Please sign in to comment.