package Ġcom . launch key . android . auth enticator . sdk . ui . internal . auth _ method . circle _ code Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . activity ViewModels Ċ import Ġandroidx . fragment . app . view Models Ċ import Ġcom . launch key . android . auth enticator . sdk . core . auth _ method _ management . Verification Flag Ċ import Ġcom . launch key . android . auth enticator . sdk . ui . R Ċ import Ġcom . launch key . android . auth enticator . sdk . ui . databinding . Fragment Circle Code Settings Binding Ċ import Ġcom . launch key . android . auth enticator . sdk . ui . internal . util . Base AppCompat Fragment Ċ import Ġcom . launch key . android . auth enticator . sdk . ui . internal . util . Ui Utils Ċ import Ġcom . launch key . android . auth enticator . sdk . ui . internal . util . view Binding Ċ Ċ class ĠCircle Code Settings Fragment Ġ: ĠBase AppCompat Fragment ( R . layout . fragment _ circle _ code _ settings ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġcircle Code Check ViewModel : ĠCircle Code Check ViewModel Ġby Ġview Models ({ Ġrequire Parent Fragment () Ġ}) ĊĠĠĠ Ġprivate Ġval Ġbinding Ġby Ġview Binding ( Fragment Circle Code Settings Binding :: bind ) ĊĠĠĠĠĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġsetup Panel () ĊĠĠĠĠĠĠĠ Ġsubscribe Observer s () ĊĠĠĠ Ġ} ĊĠĠĠĠĊĠĠĠ Ġprivate Ġfun Ġsetup Panel () Ġ{ ĊĠĠĠĠĠĠĠ Ġwith ( binding . panel Circle Code Settings ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Remove ButtonText ( R . string . io a _ sec _ panel _ remove _ single ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset On Remove Button Click Ġ{ Ġcircle Code Check ViewModel . request Remove Circle Code () Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdis allow Switch Swipe () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset On Switch Clicked Listener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġis Switch On Ġ= Ġ! is Switch On ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcircle Code Check ViewModel . request Toggle Verification Flag () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠĠĊĠĠĠ Ġprivate Ġfun Ġsubscribe Observer s () Ġ{ ĊĠĠĠĠĠĠĠ Ġcircle Code Check ViewModel . verification Flag State . observe ( view Lifecycle Owner ) Ġ{ Ġverify State Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . panel Circle Code Settings . is Switch On Ġ= Ġverify State Ġ== ĠVerification Flag . State . ALWAYS ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . panel Circle Code Settings . set Verified When Text ( Ui Utils . getString Res From User Set State ( verify State )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }