package Ġcom . k yle cor ry . trail _ sense . tools . battery . infrastructure . commands Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . k yle cor ry . and rome da . alerts . Alerts Ċ import Ġcom . k yle cor ry . trail _ sense . R Ċ import Ġcom . k yle cor ry . trail _ sense . shared . User Preferences Ċ import Ġcom . k yle cor ry . trail _ sense . shared . commands . Command Ċ Ċ class ĠPower Saving Mode Alert Command ( private Ġval Ġcontext : ĠContext ) Ġ: ĠCommand Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġpreference Ġ= ĠUser Preferences ( context ) ĊĊĠĠĠ Ġoverride Ġfun Ġexecute () Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( preference . is Low Power Mode On ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAlert s . toast ( context , Ġcontext . getString ( R . string . low _ power _ mode _ on _ message )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }