package Ġio . nova foundation . nova . feature _ staking _ impl . presentation . setup Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġdev . chr is ban es . in setter . apply In setter Ċ 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 Browser Events Ċ import Ġio . nova foundation . nova . common . mixin . impl . observe Retries Ċ import Ġio . nova foundation . nova . common . mixin . impl . observe Valid ations Ċ import Ġio . nova foundation . nova . common . view . set Progress Ċ import Ġio . nova foundation . nova . feature _ staking _ api . di . St aking Feature Api Ċ import Ġio . nova foundation . nova . feature _ staking _ impl . R Ċ import Ġio . nova foundation . nova . feature _ staking _ impl . di . St aking Feature Component Ċ import Ġio . nova foundation . nova . feature _ staking _ impl . presentation . common . reward Destination . observe Reward Destination Chooser Ċ import Ġio . nova foundation . nova . feature _ wallet _ api . presentation . mixin . amount Chooser . setup Amount Chooser Ċ import Ġio . nova foundation . nova . feature _ wallet _ api . presentation . mixin . fee . setup Fee Loading Ċ import Ġkotlinx . android . synt hetic . main . fragment _ setup _ staking . setup St aking Amount Field Ċ import Ġkotlinx . android . synt hetic . main . fragment _ setup _ staking . setup St aking Container Ċ import Ġkotlinx . android . synt hetic . main . fragment _ setup _ staking . setup St aking Fee Ċ import Ġkotlinx . android . synt hetic . main . fragment _ setup _ staking . setup St aking Next Ċ import Ġkotlinx . android . synt hetic . main . fragment _ setup _ staking . setup St aking Reward Destination Chooser Ċ import Ġkotlinx . android . synt hetic . main . fragment _ setup _ staking . setup St aking Toolbar Ċ Ċ class ĠSetup St aking Fragment Ġ: ĠBase Fragment < Setup St aking ViewModel >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ?, ĊĠĠĠ Ġ): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . fragment _ setup _ staking , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit Views () Ġ{ ĊĠĠĠĠĠĠĠ Ġsetup St aking Container . apply In setter Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtype ( status Bars Ġ= Ġtrue ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpadding () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġconsume ( true ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġsetup St aking Toolbar . set Home Button Listener Ġ{ ĠviewModel . back Clicked () Ġ} ĊĠĠĠĠĠĠĠ Ġon Back Pressed Ġ{ ĠviewModel . back Clicked () Ġ} ĊĊĠĠĠĠĠĠĠ Ġsetup St aking Next . prepare For Progress ( view Lifecycle Owner ) ĊĠĠĠĠĠĠĠ Ġsetup St aking Next . setOnClickListener Ġ{ ĠviewModel . next Clicked () Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinject () Ġ{ ĊĠĠĠĠĠĠĠ ĠFeature Utils . get Feature < St aking Feature Component >( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Context (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSt aking Feature Api :: class . java ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. setup St aking Component Factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( this ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsubscribe ( viewModel : ĠSetup St aking ViewModel ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobserve Retries ( viewModel ) ĊĠĠĠĠĠĠĠ Ġobserve Valid ations ( viewModel ) ĊĠĠĠĠĠĠĠ Ġobserve Browser Events ( viewModel ) ĊĠĠĠĠĠĠĠ Ġobserve Reward Destination Chooser ( viewModel , Ġsetup St aking Reward Destination Chooser ) ĊĠĠĠĠĠĠĠ Ġsetup Amount Chooser ( viewModel . amount Chooser Mixin , Ġsetup St aking Amount Field ) ĊĠĠĠĠĠĠĠ Ġsetup Fee Loading ( viewModel , Ġsetup St aking Fee ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . title . observe ( setup St aking Toolbar :: setTitle ) ĊĊĠĠĠĠĠĠĠ ĠviewModel . show Next Progress . observe ( setup St aking Next :: set Progress ) ĊĠĠĠ Ġ} Ċ } Ċ