Base: Factor out preference-in-storage check to overridable method.

taken from
https://github.com/CyanogenMod/android_frameworks_base/commit/e262881de4fd813bf876ff0b3f2a476d30a1b74d

need by
https://gerrit.omnirom.org/#/c/5759/

Change-Id: I64966e15e0e92a2058809ead2c694a9badae881b

Conflicts:
	core/java/android/preference/Preference.java
Readd battery bar headers

Not sure why on the go mode deleted them... Must've been my derp

Signed-off-by: anerik <anerikgames@gmail.com>
ES translations

Signed-off-by: anerik <anerikgames@gmail.com>
Signed-off-by: anerikg <anerikgames@gmail.com>

Conflicts:
	packages/SystemUI/res/values-es/slim_strings.xml