package Ġcom . the wiz rd . shared _ resources . adapters Ċ Ċ import Ġandroidx . core . util . Objects Compat Ċ import Ġandroidx . recyclerview . widget . Diff Util Ċ import Ġcom . the wiz rd . shared _ resources . view models . Music Player ViewModel Ċ Ċ class ĠMusic Player Item Differ Ġ: ĠDiff Util . Item Callback < Music Player ViewModel >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġare Items The Same ( ĊĠĠĠĠĠĠĠ Ġold Item : ĠMusic Player ViewModel , ĊĠĠĠĠĠĠĠ Ġnew Item : ĠMusic Player ViewModel ĊĠĠĠ Ġ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠObjects Compat . equals ( old Item . packageName , Ġnew Item . packageName ) Ġ&& ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠObjects Compat . equals ( old Item . activity Name , Ġnew Item . activity Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġare Contents The Same ( ĊĠĠĠĠĠĠĠ Ġold Item : ĠMusic Player ViewModel , ĊĠĠĠĠĠĠĠ Ġnew Item : ĠMusic Player ViewModel ĊĠĠĠ Ġ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠObjects Compat . equals ( old Item , Ġnew Item ) ĊĠĠĠ Ġ} Ċ }