package Ġcom . na uf al pr ak oso . super hero app . ui . detail . appearance Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . na uf al pr ak oso . super hero app . database . entity . Appearance Ċ import Ġcom . na uf al pr ak oso . super hero app . databinding . Fragment Appearance Binding Ċ import Ġdagger . h ilt . android . Android EntryPoint Ċ Ċ @ Android EntryPoint Ċ class ĠAp pearance Fragment ( private Ġval Ġappearance : ĠAp pearance ) Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠFragment Appearance Binding ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠFragment Appearance Binding . inflate ( in flater , Ġcontainer , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Activity Created ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Activity Created ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġif Ġ( activity Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Gender . text Ġ= Ġappearance . gender ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Race . text Ġ= Ġappearance . get Race ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Height . text Ġ= Ġappearance . height ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Weight . text Ġ= Ġappearance . weight ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv Eye Color . text Ġ= Ġappearance . eye Color ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . tv H air Color . text Ġ= Ġappearance . hair Color ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun ĠgetInstance ( appearance : ĠAp pearance ): ĠFragment Ġ= ĠAp pearance Fragment ( appearance ) ĊĠĠĠ Ġ} Ċ } Ċ