/* Ċ Ġ* Ġ( C ) ĠCopyright ĠIBM ĠDe ut sch land ĠGmbH Ġ 2 0 2 1 Ċ Ġ* Ġ( C ) ĠCopyright ĠIBM ĠCorp . Ġ 2 0 2 1 Ċ Ġ*/ Ċ Ċ package Ġde . r ki . cov pass . check app . main Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . ibm . health . common . android . utils . view Binding Ċ import Ġcom . ibm . health . common . navigation . android . Fragment Nav Ċ import Ġcom . ibm . health . common . navigation . android . find Navigator Ċ import Ġde . r ki . cov pass . check app . R Ċ import Ġde . r ki . cov pass . common app . Base Bottom Sheet Ċ import Ġde . r ki . cov pass . common app . databinding . Data Protection Binding Ċ import Ġde . r ki . cov pass . common app . dependencies . common Deps Ċ import Ġde . r ki . cov pass . common app . storage . On boarding Repository Ċ import Ġkotlinx . parcel ize . Parcel ize Ċ Ċ internal Ġinterface ĠData Protection Callback Ġ{ ĊĠĠĠ Ġfun Ġon Data Protection Finish () Ċ } Ċ Ċ @ Parcel ize Ċ internal Ġclass ĠData Protection Fragment Nav Ġ: ĠFragment Nav ( Data Protection Fragment :: class ) Ċ Ċ /** Ċ Ġ* ĠFragment Ġwhich Ġrepresents Ġdata Ġprotection Ġinformation Ċ Ġ*/ Ċ internal Ġclass ĠData Protection Fragment Ġ: ĠBase Bottom Sheet () Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġheight LayoutParams Ġby Ġlazy Ġ{ ĠViewGroup . LayoutParams . MATCH _ PARENT Ġ} ĊĠĠĠ Ġprivate Ġval Ġbinding Ġby Ġview Binding ( Data Protection Binding :: inflate ) ĊĠĠĠ Ġoverride Ġval Ġanno uncement Accessibility Res Ġ= ĠR . string . accessibility _ app _ information _ dat ens ch utz _ announce ĊĠĠĠ Ġoverride Ġval Ġbutton Text Res : ĠInt Ġ= ĠR . string . confirmation _ four th _ on boarding _ page _ button _ title ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbottom Sheet Binding . bottom Sheet Title . text Ġ= ĠgetString ( R . string . app _ information _ title _ dat ens ch utz ) ĊĠĠĠĠĠĠĠ Ġbinding . data Protection WebView . load Url ( getString ( R . string . data _ protection _ path )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon ActionButton Clicked () Ġ{ ĊĠĠĠĠĠĠĠ Ġlaunch When Started Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcommon Deps . on boarding Repository . data Privacy Version Accepted ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set ( On boarding Repository . CURRENT _ DATA _ PRIV ACY _ VERSION ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfind Navigator (). pop Until < Data Protection Callback >() ?. on Data Protection Finish () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonClick Outside () Ġ{ ĊĠĠĠĠĠĠĠ Ġon ActionButton Clicked () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonClose Button Clicked () Ġ{ ĊĠĠĠĠĠĠĠ Ġon ActionButton Clicked () ĊĠĠĠ Ġ} Ċ } Ċ