Skip to content

Commit

Permalink
Rename param (android#563)
Browse files Browse the repository at this point in the history
Using `view` instead of `it` is more clear.
  • Loading branch information
tiembo authored and nic0lette committed Dec 16, 2019
1 parent 5d5dd9e commit 2da1ffa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ class PlantAdapter : ListAdapter<Plant, RecyclerView.ViewHolder>(PlantDiffCallba

private fun navigateToPlant(
plant: Plant,
it: View
view: View
) {
val direction =
HomeViewPagerFragmentDirections.actionViewPagerFragmentToPlantDetailFragment(
plant.plantId
)
it.findNavController().navigate(direction)
view.findNavController().navigate(direction)
}

fun bind(item: Plant) {
Expand Down

0 comments on commit 2da1ffa

Please sign in to comment.