SystemAnim: Separate modRes & place as arguments for methods
BatteryBar: Prevent unnecessary pref reads

move preference check to inside batterybarmod.java. Also, it is after
the systemUI check. So that we do not access the preference all the
time regardless if it is in systemUI.