package Ġlt . get pet . get pet . adapters Ċ Ċ import Ġandroid . content . Context Ċ import Ġlt . get pet . get pet . R Ċ import Ġlt . get pet . get pet . adapters . deleg ates . Delegating Adapter Ċ import Ġlt . get pet . get pet . adapters . deleg ates . Favorite P ets Delegate Adapter Ċ import Ġlt . get pet . get pet . adapters . deleg ates . Label Delegate Adapter Ċ import Ġlt . get pet . get pet . data . Pet Ċ Ċ class ĠF avorite P ets ListAdapter ( ĊĠĠĠĠĠĠĠ Ġcontext : ĠContext , ĊĠĠĠĠĠĠĠ Ġlistener : ĠF avorite P ets Delegate Adapter . Pet Clicked Listener Ċ ) Ġ: ĠDeleg ating Adapter ( ĊĠĠĠĠĠĠĠ ĠLabel Delegate Adapter (), ĊĠĠĠĠĠĠĠ ĠF avorite P ets Delegate Adapter ( context , Ġlistener ) Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġbind Data ( pe ts : ĠList < Pet >, Ġp ets With Get Pet Request : ĠList < Pet >) Ġ{ ĊĠĠĠĠĠĠĠ Ġitems Ġ= ĠlistOf () ĊĊĠĠĠĠĠĠĠ Ġif Ġ( pe ts With Get Pet Request . isNotEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġitems Ġ= Ġitems . plus ( Label Delegate Adapter . Label Item ( R . string . my _ get _ pet _ requests )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. plus ( pe ts With Get Pet Request ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġitems Ġ= Ġitems . plus ( Label Delegate Adapter . Label Item ( R . string . my _ favorite _ pe ts )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. plus ( pe ts ) ĊĠĠĠ Ġ} Ċ Ċ }