package Ġcom . app . manage contacts Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġandroidx . navigation . Navigation . find Nav Controller Ċ import Ġandroidx . navigation . ui . Navigation UI . setup ActionBar With Nav Controller Ċ import Ġcom . app . manage contacts . base . Base Activity Ċ import Ġcom . app . manage contacts . databinding . Activity Contacts Binding Ċ import Ġkotlinx . android . synt hetic . main . activity _ contacts .* Ċ Ċ class ĠContact s Activity Ġ: ĠBase Activity < Activity Contacts Binding >() Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġnav Controller : ĠNav Controller ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġset Support ActionBar ( toolbar ) ĊĠĠĠĠĠĠĠ Ġnav Controller Ġ= Ġfind Nav Controller ( this , ĠR . id . nav _ host _ fragment ) ĊĠĠĠĠĠĠĠ Ġsetup ActionBar With Nav Controller ( this , Ġnav Controller ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Layout Id (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠR . layout . activity _ contacts ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Support Navigate Up () Ġ= ĊĠĠĠĠĠĠĠ Ġfind Nav Controller ( this , ĠR . id . nav _ host _ fragment ). navigate Up () Ċ Ċ } Ċ