Battery style: code optimization

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

Change-Id: I0946cfb0a9dd38382ab75a159ea2187e8531c90c