Battery style: code optimization

thanks to CM guys
http://review.cyanogenmod.org/#/c/82420

Change-Id: Ifb7f0a23a56f7a9607d76fc988a412f30e2713d2