package Ġcom . ud acity Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroid . graphics . Color Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . core . app . Notification Manager Compat Ċ import Ġandroidx . databinding . Data Binding Util Ċ import Ġcom . ud acity . databinding . Activity Detail Binding Ċ import Ġcom . ud acity . databinding . Activity Main Binding Ċ import Ġcom . ud acity . databinding . Content Detail Binding Ċ Ċ class ĠDetail Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠActivity Detail Binding ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding Include : ĠContent Detail Binding ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠActivity Detail Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ Ġbinding Include Ġ= Ġbinding . content Detail Id ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĠĠĠĠĠĠĠ Ġset Support ActionBar ( binding . toolbar ) ĊĊĊĠĠĠĠĠĠĠ Ġbinding Include . fileName TextView . text Ġ= Ġintent . getString Extra (" FILE _ NAME ") ĊĠĠĠĠĠĠĠ Ġbinding Include . status TextView . text Ġ= Ġintent . getString Extra (" STATUS ") ĊĠĠĠĠĠĠĠ Ġbinding Include . status TextView . setTextColor ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( intent . getString Extra (" STATUS ") Ġ== Ġ" Success ") ĠColor . GREEN Ġelse ĠColor . RED ) ĊĊĠĠĠĠĠĠĠ Ġbinding Include . ok ay Button . setOnClickListener Ġ{ ĠstartActivity ( Intent ( this , ĠMainActivity :: class . java )) Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġnotification Manager Compat Ġ= ĠNotification Manager Compat . from ( this ) ĊĠĠĠĠĠĠĠ Ġnotification Manager Compat . cancel ( 1 ) ĊĊĠĠĠ Ġ} Ċ Ċ } Ċ