package Ġid . ros y id . top artists . utils Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . core . os . bundle Of Ċ import Ġid . ros y id . top artists . data . Artist Ċ import Ġid . ros y id . top artists . ui . main . artists . detail . Detail Artist Activity Ċ Ċ class ĠArtist Listener ( private Ġval Ġcontext : ĠContext ) Ġ: ĠRecyclerView Artist Listener () Ġ{ ĊĠĠĠ Ġoverride Ġlateinit Ġvar Ġselected Artist : ĠArtist ĊĊĠĠĠ Ġoverride Ġfun Ġon Item Click () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= ĠIntent ( context , ĠDetail Artist Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġbundle Ġ= Ġbundle Of ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠConst . AR TI ST _ NAME Ġto Ġselected Artist . name , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠConst . AR TI ST _ BIO Ġto Ġselected Artist . bio , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠConst . AR TI ST _ MONTH LY _ LIST ENER Ġto Ġselected Artist . monthly Listener , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠConst . AR TI ST _ IMAGE Ġto Ġselected Artist . profile Image ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġbundle . put Parcelable ArrayList ( Const . AR TI ST _ GEN RE , Ġselected Artist . genres ) ĊĠĠĠĠĠĠĠ Ġbundle . put Parcelable ArrayList ( Const . AR TI ST _ AL BU MS , Ġselected Artist . albums ) ĊĊĠĠĠĠĠĠĠ Ġintent . put Extras ( bundle ) ĊĠĠĠĠĠĠĠ Ġcontext . startActivity ( intent ) ĊĠĠĠ Ġ} Ċ } Ċ