package Ġcom . github . o jh 1 0 2 . tim ary . base Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . databinding . Data Binding Util Ċ import Ġandroidx . databinding . ViewData Binding Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġandroidx . navigation . find Nav Controller Ċ import Ġcom . github . o jh 1 0 2 . tim ary . R Ċ import Ġdagger . android . support . D agger Fragment Ċ import Ġjavax . inject . Inject Ċ Ċ internal Ġabstract Ġclass ĠBase Fragment < VB Ġ: ĠView Data Binding > Ġ: ĠD agger Fragment () Ġ{ ĊĠĠĠ Ġprotected Ġabstract Ġval Ġlayout Res : ĠInt ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar ĠviewModel Factory : ĠViewModel Provider . Factory ĊĊĠĠĠ Ġlateinit Ġvar Ġbinding : ĠVB ĊĊĠĠĠ Ġprotected Ġopen Ġval Ġnav Controller : ĠNav Controller ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġactivity !!. find Nav Controller ( R . id . nav _ host _ fragment ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠData Binding Util . inflate ( in flater , Ġlayout Res , Ġcontainer , Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġbinding . lifecycle Owner Ġ= Ġview Lifecycle Owner ĊĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} Ċ } Ċ