package Ġcom . now i wr 0 1 . stop _ smo king . presentation . main . home . health Ċ Ċ import Ġby . kir ich 1 4 0 9 . view binding delegate . view Binding Ċ import Ġcom . now i wr 0 1 . domain . model . user . User Ċ import Ġcom . now i wr 0 1 . stop _ smo king . R Ċ import Ġcom . now i wr 0 1 . stop _ smo king . databinding . Fragment Health Binding Ċ import Ġcom . now i wr 0 1 . stop _ smo king . model . adapters . Health Adapter Ċ import Ġcom . now i wr 0 1 . stop _ smo king . model . health . Health Builder Ċ import Ġcom . now i wr 0 1 . stop _ smo king . presentation . base . Base Fragment Ċ import Ġcom . now i wr 0 1 . stop _ smo king . presentation . main . home . User ViewModel Ċ import Ġorg . k oin . android x . view model . ext . android . shared ViewModel Ċ Ċ class ĠHealth Fragment : ĠBase Fragment ( R . layout . fragment _ health ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġbinding Ġby Ġview Binding < Fragment Health Binding >() ĊĠĠĠ Ġprivate Ġval ĠviewModel Ġby Ġshared ViewModel < User ViewModel >() ĊĊĠĠĠ Ġoverride Ġfun Ġset Listeners () Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . toolbar . set Navigation OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbase Activity . on Back Pressed () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġset Observer s () Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel . userData . observe ( view Lifecycle Owner ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset RecyclerView ( it ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġset RecyclerView ( user : ĠUser ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . health Recycler . adapter Ġ= ĠHealth Adapter ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠHealth Builder . get Health List ( context ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġuser . smoke Info ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ }