Themes: Allow changing theme to Holo.Light without crashing

Themes that attempt to change the settings theme's parent to
Holo.Light will end up crashing wifi settings.

Themers should override Theme.Settings.Base and leave Theme.Settings.Holo
alone.  Attempting to theme Theme.Settings.Holo will result in crashes
when accessing wifi settings.

This was patch was adapted from
https://github.com/tung91/android_packages_apps_Settings/commit/007f03b559c6d13115c63c4f601ebc4b9324d32d

Change-Id: I61951b892acac6304d2c3dd02668eb70af93eef9

Conflicts:
	res/values/themes.xml
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into kitkat
Keydisabler: fix button light restore logic

Do not assign default button brightness if backup key is not found.
Instead do nothing. This will prevent brightness being reset to default
on boot when navbar is disabled.

If backup key is not found when actually toggling navbar then we've got
bigger problems.

Change-Id: I649bf1480a42f2cbe94d0a47a0c6055c934b4f56
Fix exception being thrown if CMHW is not installed.

Happens during debugging when mmp'ing the app.

Change-Id: Ief84a812696ef3f2515701790f96649cbde0f7d9
Change "Stay Awake" description to match behavior

Stay awake acts on "plugged in" state, not "charging" state.  Update description to accurately reflect this behavior.

Change-Id: Ibad7eb8b465f31d1b6d835348eb23962657fd892
Fix translatability of modified dev countdown strings

Change-Id: I3bc1749e27068a63144fd4f3b059396344e7858d
Fix translatability of modified ADB strings

Change-Id: If16467496ff2d44c3f75574d4bfbb117d6d12692
Automatic Translation Import

Change-Id: Ia292c19890f6c2de7fe63af93ba0fa24d0c73282
Merge remote-tracking branch 'pa_upstream/kitkat' into legacy
Legacy Parts

This is a new global sub-category implement meant to clean up ParanoidAndroid's settings menus.

Since AOSPA-legacy uses both CyanogenMod and ParanoidAndroid's coding, things were meshed together incoherently. Legacy Parts will now house categories/features not present in the official ParanoidAndroid upstream however, needed for non-Nexus/legacy devices to function efficiently.

Great Thanks to @TheMrcool212 for allowing me to use AOSPAL's remix-settings pagertabstrip implement for Legacy Parts. Also for helping me with a great deal of resource file migration and classes.

Change-Id: I2907eafdad519a70b37159f18d42ddbc08417bee
DisplayColor: Properly handle a minValue

* Previously setting anything as a minValue would cause the
  percentages to get out of whack. For instance, setting it to 35
  would cause the maximum percentage to climb above 100% as well
  as still allowing the value to be set lower than the min.
* This makes the maximum for the slider the max value minus the min
  (so we get the proper spread for min to max) and then adds the min
  back on before setting so we can't possibly go below the min.

Change-Id: I8dcdc422f54847940351fae10c74af6301d1e1be
Legacy Parts: Update PagerSlidingTabStrip class

-- Check if tabCount > 0
(do this before attempting tabsContainer.getChildAt(position) when scrolling to child.)

-- if pager == null no need to call requestLayout()

-- make shouldExpand work correctly
   (referenced here: https://github.com/astuetz/PagerSlidingTabStrip/pull/42)
-- Use Gravity to center tabs

-- add onTabReselected() callbackFunction
  (referenced here: https://github.com/astuetz/PagerSlidingTabStrip/pull/92)

-- Fix: Tab dislocation caused by setViewPager

Change-Id: I0184de3c010a902a721572d3dcaa75101e38aa0c
Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Add Xperia Settings to Legacy parts

Change-Id: Id1e7e341505c741d940c813787808ff8d6aac247
Merge branch 'github/kitkat'

Conflicts:
	res/values/themes.xml
	res/xml/settings_headers.xml
	src/com/android/settings/Settings.java

Change-Id: I985625609cfd999b096325bb90ad40631217b43e