package Ġcom . mark nk am au . just java . ui . about Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . content . Intent Ċ import Ġandroid . net . Uri Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . mark nk am au . just java . Build Config Ċ import Ġcom . mark nk am au . just java . databinding . Activity About Binding Ċ Ċ class ĠAbout Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠActivity About Binding ĊĊĠĠĠ Ġ@ Suppress Lint (" SetText I 1 8 n ") ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠActivity About Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĊĠĠĠĠĠĠĠ Ġbinding . img Back About . setOnClickListener Ġ{ Ġfinish () Ġ} ĊĠĠĠĠĠĠĠ Ġval Ġapp Version Ġ= Ġ" v ${ Build Config . VERSION _ NAME } Ġ${ if Ġ( Build Config . BUILD _ TYPE Ġ== Ġ" debug ") Ġ"( debug )" Ġelse Ġ"" }" ĊĠĠĠĠĠĠĠ Ġbinding . tv App Version About . text Ġ= Ġapp Version ĊĠĠĠĠĠĠĠ Ġbinding . tv Source Code About . setOnClickListener Ġ{ Ġopen Url (" https :// github . com / Mark Nj unge / Just Java - Android ") Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . img Email About . setOnClickListener Ġ{ Ġsend Email () Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . img Linked In About . setOnClickListener Ġ{ Ġopen Url (" https :// linkedin . com / in / mark nj unge ") Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . img Website About . setOnClickListener Ġ{ Ġopen Url (" https :// mark nj unge . com ") Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . img Github About . setOnClickListener Ġ{ Ġopen Url (" https :// github . com / Mark Nj unge ") Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . tv Privacy Policy About . setOnClickListener Ġ{ Ġopen Url (" https :// just java . store / privacy ") Ġ} ĊĊĠĠĠĠĠĠĠ Ġ// ĠSee Ġhttps :// github . com / google / play - services - plugins / pull / 6 2 ĊĠĠĠĠĠĠĠ Ġbinding . tv License s About . visibility Ġ= ĠView . GONE ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġopen Url ( url : ĠString ) Ġ= ĠstartActivity ( Intent ( Intent . ACTION _ VIEW , ĠUri . parse ( url ))) ĊĊĠĠĠ Ġprivate Ġfun Ġsend Email () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaddresses Ġ= ĠarrayOf (" contact @ mark nj unge . com ") Ġ// ĠHas Ġto Ġbe ĠString Ġarray Ġor Ġit Ġwill Ġignore ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= ĠIntent ( Intent . ACTION _ SEND TO ) ĊĠĠĠĠĠĠĠ Ġintent . data Ġ= ĠUri . parse (" mailto :") Ġ// Ġonly Ġemail Ġapps Ġshould Ġhandle Ġthis ĊĠĠĠĠĠĠĠ Ġintent . putExtra ( Intent . EXTRA _ EMAIL , Ġaddresses ) ĊĠĠĠĠĠĠĠ ĠstartActivity ( intent ) ĊĠĠĠ Ġ} Ċ } Ċ