package Ġmot oc it izen . utils Ċ Ċ import Ġandroid . preference . CheckBox Preference Ċ import Ġandroid . preference . Preference Ċ import Ġandroid . preference . Preference Fragment Ċ import Ġmot oc it izen . datas ources . preferences . Preferences Ċ Ċ fun ĠPreference . on ChangeListener ( callback : Ġ( Preference , ĠAny ) Ġ-> ĠBoolean ) Ġ{ ĊĠĠĠ Ġon Preference ChangeListener Ġ= ĠPreference . On Preference ChangeListener ( callback ) Ċ } Ċ Ċ fun ĠPreference . on ClickListener ( callback : Ġ( Preference ) Ġ-> ĠBoolean ) Ġ{ ĊĠĠĠ Ġon Preference ClickListener Ġ= ĠPreference . On Preference ClickListener ( callback ) Ċ } Ċ Ċ private Ġinline Ġfun Ġ< re ified ĠT Ġ: ĠPreference > ĠPreference Fragment . preference Binder ( name : ĠString ) Ġ= Ġlazy Ġ{ Ġfind Preference ( Preferences . get Preference Name ( name )) Ġas ĠT Ġ} Ċ Ċ fun ĠPreference Fragment . bind Preference ( name : ĠString ) Ġ= Ġpreference Binder < Preference >( name ) Ċ Ċ fun ĠPreference Fragment . bind CheckBox Preference ( name : ĠString ) Ġ= Ġpreference Binder < CheckBox Preference >( name )