package Ġdev . sas ikan th . pin nit . oem warning Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . app . Dialog Ċ import Ġandroid . content . Intent Ċ import Ġandroid . net . Uri Ċ import Ġandroid . os . Build Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Dialog Fragment Ċ import Ġandroidx . fragment . app . FragmentManager Ċ import Ġcom . google . android . material . dialog . Material AlertDialog Builder Ċ import Ġdev . sas ikan th . pin nit . databinding . Pin nit O em Warning Dialog Binding Ċ Ċ class ĠO em Warning Dialog Ġ: ĠDialog Fragment () Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġconst Ġval ĠTAG Ġ= Ġ" O EM _ WARNING _ DIALOG " ĊĠĠĠ Ġprivate Ġval ĠD ONT _ KILL _ MY _ APP _ LINK Ġ= Ġ" https :// dont kill myapp . com /${ Build . B RAND }" ĊĊĠĠĠ Ġfun Ġshow ( fragment Manager : ĠFragment Manager ) Ġ{ ĊĠĠĠĠĠ ĠO em Warning Dialog () ĊĠĠĠĠĠĠĠ Ġ. show ( fragment Manager , ĠTAG ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġprivate Ġvar Ġ_ binding : ĠP inn it O em Warning Dialog Binding ? Ġ= Ġnull ĊĠ Ġprivate Ġval Ġbinding Ġget () Ġ= Ġ_ binding !! ĊĊĠ Ġ@ Suppress Lint (" Inf late Params ") ĊĠ Ġoverride Ġfun ĠonCreate Dialog ( savedInstanceState : ĠBundle ?): ĠDialog Ġ{ ĊĠĠĠ Ġval Ġlayout Inflater Ġ= ĠLayoutInflater . from ( require Context ()) ĊĠĠĠ Ġ_ binding Ġ= ĠP inn it O em Warning Dialog Binding . inflate ( layout Inflater , Ġnull , Ġfalse ) ĊĊĠĠĠ Ġreturn ĠMaterial AlertDialog Builder ( require Context ()) ĊĠĠĠĠĠ Ġ. setView ( binding . root ) ĊĠĠĠĠĠ Ġ. create () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView Ġ{ ĊĠĠĠ Ġreturn Ġbinding . root ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠ Ġbinding . show Instructions Button . setOnClickListener Ġ{ ĊĠĠĠĠĠ Ġshow Instructions () ĊĠĠĠĠĠ Ġdismiss () ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Destroy View () Ġ{ ĊĠĠĠ Ġ_ binding Ġ= Ġnull ĊĠĠĠ Ġsuper . on Destroy View () ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġshow Instructions () Ġ{ ĊĠĠĠ Ġval Ġintent Ġ= ĠIntent ( Intent . ACTION _ VIEW , ĠUri . parse ( D ONT _ KILL _ MY _ APP _ LINK )) ĊĠĠĠ ĠstartActivity ( intent ) ĊĠ Ġ} Ċ } Ċ