package Ġcom . in fin um . sentinel . ui . main . device Ċ Ċ import Ġandroidx . annotation . Restrict To Ċ import Ġcom . in fin um . sentinel . R Ċ import Ġcom . in fin um . sentinel . databinding . Sent inel Fragment Device Binding Ċ import Ġcom . in fin um . sentinel . ui . shared . base . Base Child Fragment Ċ import Ġcom . in fin um . sentinel . ui . shared . deleg ates . view Binding Ċ import Ġorg . k oin . android x . view model . ext . android . viewModel Ċ Ċ @ Restrict To ( Restrict To . Scope . LIBRARY ) Ċ internal Ġclass ĠDevice Fragment Ġ: ĠBase Child Fragment < Device State , ĠNothing >( R . layout . sentinel _ fragment _ device ) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance () Ġ= ĠDevice Fragment () ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠTAG : ĠString Ġ= Ġ" Device Fragment " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġval Ġbinding : ĠSentinel Fragment Device Binding Ġby Ġview Binding ( ĊĠĠĠĠĠĠĠ ĠSentinel Fragment Device Binding :: bind ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġval ĠviewModel : ĠDevice ViewModel Ġby ĠviewModel () ĊĊĠĠĠ Ġoverride Ġfun Ġon State ( state : ĠDevice State ) Ġ= ĊĠĠĠĠĠĠĠ Ġwhen Ġ( state ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠDevice State . Data Ġ-> Ġwith ( binding ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmanufacturer View . data Ġ= Ġstate . value . manufacturer ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel View . data Ġ= Ġstate . value . model ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġid View . data Ġ= Ġstate . value . id ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġboot loader View . data Ġ= Ġstate . value . boot loader ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdevice View . data Ġ= Ġstate . value . device ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġboard View . data Ġ= Ġstate . value . board ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġarchitectures View . data Ġ= Ġstate . value . architect ures ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcod ename View . data Ġ= Ġstate . value . cod ename ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrelease View . data Ġ= Ġstate . value . release ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsdk View . data Ġ= Ġstate . value . sdk ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsecurity Patch View . data Ġ= Ġstate . value . security Patch ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġemulator View . data Ġ= Ġstate . value . is Prob ably An Em ulator . toString () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġauto Time View . data Ġ= Ġstate . value . auto Time . toString () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġauto Timezone View . data Ġ= Ġstate . value . auto Timezone . toString () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Event ( event : ĠNothing ) Ġ= ĠUnit Ċ } Ċ