package Ġio . nova foundation . nova . feature _ assets . presentation . send . confirm Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġio . nova foundation . nova . common . base . Base Fragment Ċ import Ġio . nova foundation . nova . common . di . Feature Utils Ċ import Ġio . nova foundation . nova . common . mixin . impl . observe Valid ations Ċ import Ġio . nova foundation . nova . common . utils . apply StatusBar Insets Ċ import Ġio . nova foundation . nova . feature _ account _ api . pres en at ation . account . wallet . show Wallet Ċ import Ġio . nova foundation . nova . feature _ account _ api . pres en at ation . actions . setup External Actions Ċ import Ġio . nova foundation . nova . feature _ account _ api . view . show Address Ċ import Ġio . nova foundation . nova . feature _ account _ api . view . show Chain Ċ import Ġio . nova foundation . nova . feature _ assets . R Ċ import Ġio . nova foundation . nova . feature _ assets . di . Assets Feature Api Ċ import Ġio . nova foundation . nova . feature _ assets . di . Assets Feature Component Ċ import Ġio . nova foundation . nova . feature _ assets . presentation . send . Transfer Draft Ċ import Ġio . nova foundation . nova . feature _ wallet _ api . presentation . mixin . fee . setup Fee Loading Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Amount Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Confirm Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Container Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Fee Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Network Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Recipient Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Sender Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Toolbar Ċ import Ġkotlinx . android . synt hetic . main . fragment _ confirm _ send . confirm Send Wallet Ċ Ċ private Ġconst Ġval ĠKEY _ DR AFT Ġ= Ġ" KEY _ DR AFT " Ċ Ċ class ĠConfirm Send Fragment Ġ: ĠBase Fragment < Confirm Send ViewModel >() Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġfun Ġget Bundle ( transfer Draft : ĠTransfer Draft ) Ġ= ĠBundle (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Parcelable ( KEY _ DR AFT , Ġtransfer Draft ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ) Ġ= Ġlayout Inflater . inflate ( R . layout . fragment _ confirm _ send , Ġcontainer , Ġfalse ) ĊĊĠĠĠ Ġoverride Ġfun Ġinit Views () Ġ{ ĊĠĠĠĠĠĠĠ Ġconfirm Send Container . apply StatusBar Insets () ĊĊĠĠĠĠĠĠĠ Ġconfirm Send Sender . setOnClickListener Ġ{ ĠviewModel . sender Address Clicked () Ġ} ĊĠĠĠĠĠĠĠ Ġconfirm Send Recipient . setOnClickListener Ġ{ ĠviewModel . recipient Address Clicked () Ġ} ĊĊĠĠĠĠĠĠĠ Ġconfirm Send Toolbar . set Home Button Listener Ġ{ ĠviewModel . back Clicked () Ġ} ĊĊĠĠĠĠĠĠĠ Ġconfirm Send Confirm . setOnClickListener Ġ{ ĠviewModel . submit Clicked () Ġ} ĊĠĠĠĠĠĠĠ Ġconfirm Send Confirm . prepare For Progress ( view Lifecycle Owner ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinject () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtransfer Draft Ġ= Ġargument < Transfer Draft >( KEY _ DR AFT ) ĊĊĠĠĠĠĠĠĠ ĠFeature Utils . get Feature < Assets Feature Component >( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Context (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssets Feature Api :: class . java ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. confirm Transfer Component Factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( this , Ġtransfer Draft ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsubscribe ( viewModel : ĠConfirm Send ViewModel ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsetup External Actions ( viewModel ) ĊĠĠĠĠĠĠĠ Ġobserve Valid ations ( viewModel ) ĊĠĠĠĠĠĠĠ Ġsetup Fee Loading ( viewModel , Ġconfirm Send Fee ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . recipient Model . observe ( confirm Send Recipient :: show Address ) ĊĠĠĠĠĠĠĠ ĠviewModel . sender Model . observe ( confirm Send Sender :: show Address ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . send Button State LiveData . observe ( confirm Send Confirm :: setState ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . wallet . observe ( confirm Send Wallet :: show Wallet ) ĊĠĠĠĠĠĠĠ ĠviewModel . chain Ui . observe ( confirm Send Network :: show Chain ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . amount Model . observe ( confirm Send Amount :: set Amount ) ĊĠĠĠ Ġ} Ċ } Ċ