package Ġjp . co . sor am its u . feature _ account _ impl . presentation . account . details Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġjp . co . sor am its u . common . base . Base Fragment Ċ import Ġjp . co . sor am its u . common . di . Feature Utils Ċ import Ġjp . co . sor am its u . common . utils . name Input Filters Ċ import Ġjp . co . sor am its u . common . utils . on TextChanged Ċ import Ġjp . co . sor am its u . common . view . bottom Sheet . list . dynamic . Dynamic List Bottom Sheet . Payload Ċ import Ġjp . co . sor am its u . feature _ account _ api . di . Account Feature Api Ċ import Ġjp . co . sor am its u . feature _ account _ api . pres en at ation . actions . setup External Actions Ċ import Ġjp . co . sor am its u . feature _ account _ impl . R Ċ import Ġjp . co . sor am its u . feature _ account _ impl . di . Account Feature Component Ċ import Ġjp . co . sor am its u . feature _ account _ impl . presentation . common . account Source . Source Type Chooser Bottom Sheet Dialog Ċ import Ġjp . co . sor am its u . feature _ account _ impl . presentation . export ing . Export Source Ċ import Ġkotlinx . android . synt hetic . main . fragment _ account _ details . account Details Address View Ċ import Ġkotlinx . android . synt hetic . main . fragment _ account _ details . account Details Encryption Type Ċ import Ġkotlinx . android . synt hetic . main . fragment _ account _ details . account Details Export Ċ import Ġkotlinx . android . synt hetic . main . fragment _ account _ details . account Details Name Field Ċ import Ġkotlinx . android . synt hetic . main . fragment _ account _ details . account Details Node Ċ import Ġkotlinx . android . synt hetic . main . fragment _ account _ details . fe ar less Toolbar Ċ Ċ private Ġconst Ġval ĠAC COUNT _ ADDRESS _ KEY Ġ= Ġ" ACCOUNT _ ADDRESS _ KEY " Ċ Ċ class ĠAccount Details Fragment Ġ: ĠBase Fragment < Account Details ViewModel >() Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġget Bundle ( account Address : ĠString ): ĠBundle Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠBundle (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġput String ( ACCOUNT _ ADDRESS _ KEY , Ġaccount Address ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ) Ġ= Ġlayout Inflater . inflate ( R . layout . fragment _ account _ details , Ġcontainer , Ġfalse ) ĊĊĠĠĠ Ġoverride Ġfun Ġinit Views () Ġ{ ĊĠĠĠĠĠĠĠ Ġfear less Toolbar . set Home Button Listener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠviewModel . back Clicked () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġaccount Details Address View . set Whole ClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠviewModel . address Clicked () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġaccount Details Export . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠviewModel . export Clicked () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġaccount Details Name Field . content . filters Ġ= Ġname Input Filters () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinject () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaddress Ġ= Ġarguments ! ![ ACCOUNT _ ADDRESS _ KEY ] Ġas ĠString ĊĊĠĠĠĠĠĠĠ ĠFeature Utils . get Feature < Account Feature Component >( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Context (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAccount Feature Api :: class . java ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. account Details Component Factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( this , Ġaddress ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsubscribe ( viewModel : ĠAccount Details ViewModel ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsetup External Actions ( viewModel ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . account LiveData . observe Ġ{ Ġaccount Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Details Address View . setMessage ( account . address ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Details Address View . setText Icon ( account . image ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Details Encryption Type . setMessage ( account . crypto Type Model . name ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Details Name Field . content . setText ( account . name ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Details Node . text Ġ= Ġaccount . network . name ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ ĠviewModel . network Model . observe Ġ{ Ġnetwork Model Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Details Node . set Compound Draw ables With Intr insic Bounds ( network Model . network Type UI . icon , Ġ 0 , Ġ 0 , Ġ 0 ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ ĠviewModel . show Export Source Chooser . observe Event (:: show Export Source Chooser ) ĊĊĠĠĠĠĠĠĠ Ġaccount Details Name Field . content . on TextChanged ( viewModel :: name Changed ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġshow Export Source Chooser ( payload : ĠPayload < Export Source >) Ġ{ ĊĠĠĠĠĠĠĠ ĠSource Type Chooser Bottom Sheet Dialog ( require Activity (), Ġpayload , ĠviewModel :: export Type Selected ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. show () ĊĠĠĠ Ġ} Ċ } Ċ