package Ġlink . stand en . m ichael . phones aver . util Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . app . Activity Ċ import Ġandroid . support . v 7 . app . AlertDialog Ċ import Ġandroid . text . method . Link Movement Method Ċ import Ġandroid . text . util . Link ify Ċ import Ġandroid . widget . TextView Ċ import Ġlink . stand en . m ichael . phones aver . R Ċ Ċ /** Ċ Ġ* ĠA Ġhelper Ġclass Ġfor Ġmanaging Ġdialog Ġpop Ġup s Ċ Ġ*/ Ċ object ĠDialog Helper Ġ{ ĊĊ ĉ /** Ċĉ Ġ* ĠShows Ġthe Ġsupport Ġdialog Ċĉ Ġ*/ Ċ ĉ @ Suppress Lint (" Inf late Params ") Ċ ĉ fun Ġshow Support Dialog ( activity : ĠActivity ) Ġ= ĠAlertDialog . Builder ( activity ). apply Ġ{ Ċĉ ĉ val Ġview Ġ= Ġactivity . layout Inflater . inflate ( R . layout . support _ dialog , Ġnull ) Ċĉ ĉ setView ( view ) Ċĉ ĉ set Positive Button ( android . R . string . ok ) Ġ{ Ġdialog , Ġ_ Ġ-> Ċĉĉ ĉ dialog . cancel () Ċĉ ĉ } Ċĉ ĉ val Ġpop Ġ= Ġcreate () ĊĊĉ ĉ // ĠLink ify Ċĉ ĉ view . findViewById < TextView >( R . id . support _ link ). apply Ġ{ Ċĉĉ ĉ Link ify . add Links ( this , ĠLink ify . ALL ) Ċĉĉ ĉ movement Method Ġ= ĠLink Movement Method . getInstance () Ċĉ ĉ } Ċĉ ĉ pop . show () Ċ ĉ } Ċ } Ċ