package Ġcom . ar up ak aman . ko hi . ui Modules . about Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . util . Log Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . core . os . bundle Of Ċ import Ġandroidx . core . view . isVisible Ċ import Ġcom . ar up ak aman . ko hi . Build Config Ċ import Ġcom . ar up ak aman . ko hi . Ko hi App Ċ import Ġcom . ar up ak aman . ko hi . R Ċ import Ġcom . ar up ak aman . ko hi . databinding . Fragment About Binding Ċ import Ġcom . ar up ak aman . ko hi . ui Modules . base . Base Fragment Ċ import Ġcom . ar up ak aman . ko hi . ui Modules . open Ar up ak aman Play Store Ċ import Ġcom . ar up ak aman . ko hi . ui Modules . open Contact Mail Ċ import Ġcom . ar up ak aman . ko hi . ui Modules . open Don ation Version Ċ import Ġcom . ar up ak aman . ko hi . utils . Google Play Utils Ċ import Ġcom . ar up ak aman . ko hi . utils . Ko hi Res Ċ import Ġcom . ar up ak aman . ko hi . utils . invoke Ċ import Ġcom . ar up ak aman . ko hi . utils . is Under lined Ċ import Ġcom . ar up ak aman . ko hi . utils . set Firebase Analytics Log Event Ċ import Ġcom . ar up ak aman . ko hi . utils . set Safe OnClickListener ĊĊ Ċ class ĠFragment About Ġ: ĠBase Fragment () Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject { ĊĊĠĠĠĠĠĠĠ Ġprivate Ġval ĠTAG Ġby Ġlazy Ġ{ Ġ" Fragment About " Ġ} ĊĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance () Ġ= ĠFragment About () ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġm Binding Ġby Ġlazy Ġ{ ĠFragment About Binding . inflate ( layout Inflater ) Ġ} ĊĠĠĠ Ġ// private Ġval Ġm Prefs Ġby Ġlazy Ġ{ ĠKo hi Shared Prefs . getInstance ( m Activity . application Context ) Ġ} ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġm Google Play Utils : ĠGoogle Play Utils ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate View ( in flater , Ġcontainer , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġreturn Ġm Binding . root ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġm Binding Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġm Google Play Utils Ġ= ĠGoogle Play Utils ( m Activity ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġbtn Rate App . set Safe OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Google Play Utils . ask For Review () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . set Firebase Analytics Log Event ( Ko hi App . EVENT _ KO HI , Ġbundle Of (" App _ Review " Ġto Ġ" Ask ed ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġbtn Get Don ation Version . set Safe OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . open Don ation Version () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . set Firebase Analytics Log Event ( Ko hi App . EVENT _ KO HI , Ġbundle Of (" Don ation _ Version " Ġto Ġ" Clicked ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbtn Get Don ation Version . isVisible Ġ= ĠBuild Config . is Ads On Ġ|| ĠBuild Config . is FD roid ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġbtn Share . set Safe OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġshare App () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . set Firebase Analytics Log Event ( Ko hi App . EVENT _ KO HI , Ġbundle Of (" App _ Shared " Ġto Ġ" Shared ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġbtn More Apps . set Safe OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . open Ar up ak aman Play Store () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . set Firebase Analytics Log Event ( Ko hi App . EVENT _ KO HI , Ġbundle Of (" More _ Apps " Ġto Ġ" More ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġtv Msg Contact . is Under lined Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtv Msg Contact . set Safe OnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . open Contact Mail () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Activity . set Firebase Analytics Log Event ( Ko hi App . EVENT _ KO HI , Ġbundle Of (" Contact _ Dev " Ġto Ġ" Mail ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġshare App (){ ĊĠĠĠĠĠĠĠ Ġkotlin . run Catch ing Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġshare Intent Ġ= ĠIntent ( Intent . ACTION _ SEND ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshare Intent . type Ġ= Ġ" text / plain " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshare Intent . putExtra ( Intent . EXTRA _ SUBJECT , ĠgetString ( R . string . app _ name )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvar Ġshare Message Ġ= Ġ"\ n ${ Ko hi Res . getString ( R . string . msg _ share _ ko hi _ app )}" ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshare Message Ġ= Ġ"$ share Message Ġhttps :// play . google . com / store / apps / details ? id =${ Build Config . APPLICATION _ ID }" ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshare Intent . putExtra ( Intent . EXTRA _ TEXT , Ġshare Message ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠstartActivity ( Intent . create Chooser ( share Intent , ĠKo hi Res . getString ( R . string . title _ share _ via ))) ĊĠĠĠĠĠĠĠ Ġ}. on Failure Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLog . e ( TAG , Ġ" share App ĠEx c Ġ: Ġ$ it ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊ Ċ }