package Ġru . kap it ox a . my wallet . categories Ċ Ċ import Ġandroidx . recyclerview . widget . Diff Util Ċ import Ġru . kap it ox a . my wallet . database . Category WithType Ċ Ċ class ĠCategories Diff Callback Ġ: ĠDiff Util . Item Callback < Category WithType >() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġare Items The Same ( old Item : ĠCategory WithType , Ġnew Item : ĠCategory WithType ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġold Item . category . id Ġ== Ġnew Item . category . id ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġare Contents The Same ( old Item : ĠCategory WithType , Ġnew Item : ĠCategory WithType ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġold Item Ġ== Ġnew Item ĊĠĠĠ Ġ} Ċ }