package Ġfr . bip i . sample . pickup . data . sources . settings Ċ Ċ import Ġandroid . content . SharedPreferences Ċ import Ġfr . bip i . sample . pickup . data . AppSettings Ċ Ċ private Ġconst Ġval ĠKEY _ PREFER ENCE Ġ= Ġ" key _ preference " Ċ Ċ private Ġconst Ġval ĠP REFERENCE _ DEF Ġ= Ġ 1 . 1 Ċ Ċ class ĠApp Settings Source ( private Ġval Ġpref : ĠSharedPreferences ) Ġ: ĠApp Settings Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġpreference : ĠDouble ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġpref . getString ( KEY _ PREFER ENCE , Ġnull )?. toDouble () Ġ?: ĠP REFERENCE _ DEF Ċ } Ċ