package Ġcom . tk u hn . recipe finder . utils . extensions Ċ Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . navigation . Nav Directions Ċ import Ġandroidx . navigation . Navigation Ċ import Ġtim ber . log . Tim ber Ċ Ċ fun ĠView . navigate To ( direction : ĠNav Directions ) Ġ{ ĊĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠ ĠNavigation . find Nav Controller ( this ). navigate ( direction ) ĊĠĠĠ Ġ} Ġcatch Ġ( e : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . e ( e . message Ġ?: Ġ" IllegalArgumentException : Ġnavigate To ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠFragment . navigate To ( direction : ĠNav Directions ) Ġ{ ĊĠĠĠ Ġview ?. navigate To ( direction ) Ċ } Ċ