package Ġcom . k yle cor ry . trail _ sense . settings . ui Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . text . InputType Ċ import Ġcom . k yle cor ry . and rome da . core . system . Resources Ċ import Ġcom . k yle cor ry . and rome da . fragments . And rome da Preference Fragment Ċ import Ġcom . k yle cor ry . and rome da . sense . Sensors Ċ import Ġcom . k yle cor ry . trail _ sense . R Ċ Ċ class ĠSensor Settings Fragment Ġ: ĠAnd rome da Preference Fragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġnavigation Map Ġ= Ġmap Of ( ĊĠĠĠĠĠĠĠ ĠR . string . pref _ sensor _ details Ġto ĠR . id . action _ settings _ to _ sensor _ details , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ cell _ signal _ settings Ġto ĠR . id . action _ action _ settings _ to _ cell Signal Settings Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ compass _ sensor Ġto ĠR . id . action _ action _ settings _ to _ cal ibrate Comp ass Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ al time ter _ calibration Ġto ĠR . id . action _ action _ settings _ to _ cal ibrate Al time ter Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ gps _ calibration Ġto ĠR . id . action _ action _ settings _ to _ cal ibrate GPS Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ bar ometer _ calibration Ġto ĠR . id . action _ action _ settings _ to _ cal ibrate Bar ometer Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ temperature _ settings Ġto ĠR . id . action _ action _ settings _ to _ ther mo meter Settings Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ od ometer _ calibration Ġto ĠR . id . action _ action _ settings _ to _ cal ibrate Od ometer Fragment , ĊĠĠĠĠĠĠĠ ĠR . string . pref _ cell _ signal _ settings Ġto ĠR . id . action _ action _ settings _ to _ cell Signal Settings Fragment ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate Preferences ( savedInstanceState : ĠBundle ?, Ġroot Key : ĠString ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġset Preferences From Resource ( R . xml . sensor _ preferences , Ġroot Key ) ĊĊĠĠĠĠĠĠĠ Ġset Icon Color ( Resources . android TextColor Secondary ( require Context ())) ĊĊĠĠĠĠĠĠĠ Ġfor Ġ( nav Ġin Ġnavigation Map ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnavigate OnClick ( preference ( nav . key ), Ġnav . value ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġpreference ( R . string . pref _ bar ometer _ calibration )?. isVisible Ġ= ĠS ensors . has Bar ometer ( require Context ()) ĊĊĠĠĠĠĠĠĠ Ġedit Text ( R . string . pref _ r uler _ calibration ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ? . setOn Bind EditText Listener Ġ{ Ġedit Text Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġedit Text . input Type Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠInput Type . TYPE _ CLASS _ NUMBER . or ( InputType . TYPE _ NUMBER _ FLAG _ DECIMAL ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }