package Ġcom . ber k ber ber . h ms _ secure web browser . adapter Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . ber k ber ber . h ms _ secure web browser . data . model . M alic ious Apps Ċ import Ġcom . ber k ber ber . h ms _ secure web browser . databinding . Item M alic ious App Binding Ċ import Ġcom . ber k ber ber . h ms _ secure web browser . ui . mal ic ious . Delete ClickListener Ċ import Ġorg . k oin . core . component . K oin Component Ċ Ċ class ĠM alic ious Apps Adapter ( private Ġvar Ġm alic ious App List : ĠList < M alic ious Apps >, Ġprivate Ġval Ġdelete ClickListener : ĠDelete ClickListener ): ĊĠĠĠ ĠRecyclerView . Adapter < M alic ious Apps Adapter . M alic ious App ViewHolder >(), ĠK oin Component { ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠItem M alic ious App Binding ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ): ĠM alic ious App ViewHolder Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠItem M alic ious App Binding . inflate ( LayoutInflater . from ( parent . context ), Ġparent , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġreturn ĠM alic ious App ViewHolder ( binding ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠM alic ious App ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġm alic ious App Ġ= Ġm alic ious App List [ position ] ĊĠĠĠĠĠĠĠ Ġholder . bind M alic ious App ( mal ic ious App ) ĊĊĠĠĠĠĠĠĠ Ġholder . binding . mal ic ious App Root . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdelete ClickListener . selected App ( mal ic ious App ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetItem Count (): ĠInt Ġ= Ġm alic ious App List . size ĊĊĠĠĠ Ġinner Ġclass ĠM alic ious App ViewHolder ( val Ġbinding : ĠItem M alic ious App Binding ): ĊĠĠĠĠĠĠĠ ĠRecyclerView . ViewHolder ( binding . root ){ ĊĊĠĠĠĠĠĠĠ Ġfun Ġbind M alic ious App ( mal ic ious App : ĠM alic ious Apps ){ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . mal ic ious App Ġ= Ġm alic ious App ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbinding . execute Pending Bindings () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }