package Ġcom . ze yn eler di . app . security . app locker . ui . call block er . blacklist . delete Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . appcompat . app . AppCompat Dialog Fragment Ċ import Ġcom . ze yn eler di . app . security . app locker . R Ċ import Ġcom . ze yn eler di . app . security . app locker . databinding . Dialog Black ListItem Delete Binding Ċ import Ġcom . ze yn eler di . app . security . app locker . ui . Base Bottom Sheet Dialog Ċ import Ġcom . ze yn eler di . app . security . app locker . util . delegate . inflate Ċ Ċ class ĠBlack ListItem Delete Dialog Ġ: ĠBase Bottom Sheet Dialog < Black ListItem Delete ViewModel >() Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġbinding : ĠDialog Black ListItem Delete Binding Ġby Ġinf late ( R . layout . dialog _ black _ list _ item _ delete ) ĊĊĠĠĠ Ġoverride Ġfun Ġget ViewModel (): ĠClass < Black ListItem Delete ViewModel > Ġ= ĠBlack ListItem Delete ViewModel :: class . java ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . button Delete . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠonDelete Clicked () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . button Cancel . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdismiss () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun ĠonDelete Clicked () Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel . delete From Black List ( arguments ?. getInt ( KEY _ BLACK _ LIST _ ID , Ġ- 1 ) Ġ?: Ġ- 1 ) ĊĠĠĠĠĠĠĠ Ġdismiss () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠKEY _ BLACK _ LIST _ ID Ġ= Ġ" KEY _ BLACK _ LIST _ ID " ĊĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance ( black List Id : ĠInt ): ĠAppCompat Dialog Fragment Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠBlack ListItem Delete Dialog (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġarguments Ġ= ĠBundle (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( KEY _ BLACK _ LIST _ ID , Ġblack List Id ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }