Settings: recover last location state during on/off switch

based on the behaviour change on QS here:

https://gerrit.slimroms.net/#/c/1421

we go now same way in settings. Tbh not sure what the goal is to
force the user after switching off to enable always high accuracy
location. Whatever we use here same attempt like in QS tile....if the
user switches on again it recovers the last enabled state.

Change-Id: I887e2a94af379770dac7dbedb5d3d8002a554163
Settings: Add LongClick SwitchButton (2/2)

Change-Id: I97393ff5c2ae46f8193fb3be8bd723ecc09e3ebc
Settings: ES translations

Change-Id: I5bd3c3bd6f9b9f02a72c1289aad160e4019f62ff
Apn settings fixes / code maintainence (1/2)

Cleanup unecessary resources and use global ones
  - This fixes the duplicate id issue currently causing apn's to be un-editable

Bring the ui aspect of the preference up to speed with ics
 - Use ics highlight / layout...etc
 - Use fragments

Patchset 5 : Remove theme for ApnEditor
             Use static access for variables
Patchset 6 : Launch apn editor internally as a fragment
	     Replace deprecated managedQuery with CursorLoader

Apn Settings : Fix panel title

Show appropriate apn editor title

Change-Id: I1f9dbce5dbf464db79d7c2fbedb8f833e4b46468

Settings - add an AlertDialog before to delete APN to avoid fails

patch 1: fix blank space
patch 2: remove FR translation and change NegativeButton string
patch 3: improve the NegativeButton (thank you, David)
patch 4: remove create()

Change-Id: I3361d4160a7e1c4eaee094f08c7d212f71e9e0e7

* Forward port, adjusted for 4.4

Change-Id: Ie63fa1018ffb7bc419e4d7915419657de30f5b22
Fix FC when trying to adjust radio band via *#*#4636#*#* dialer code.

Fixes:

1. Add additional strings to BAND_NAMES array for additional bands from ril.h
2. Fix logic when adding band strings to selection list (for loop ends before entire array is read)

Change-Id: I5ff883a469f757a30c71d7d72c8f6ace19ce7a4d
Signed-off-by: Andrew Xie <andrew.w.xie@gmail.com>
(cherry picked from commit 4845045bb2dfd9b1a67f9f0c62bb44bfc5152284)
Always show band 0

None of the phones I tested ever displayed Automatic band selection as a
choice, probably because no baseband is going to report it supports
mythical band 0. Make sure it is always displayed.

Change-Id: I5082b04ee63a2916941fd1db40762fa990d59583
settings: fix exception in BatterySipper.getQuickNameIconForUid

placeholder

Change-Id: I4da880532788de78debffe594faf08eee0389014
Merge "Settings: recover last location state during on/off switch" into kk4.4
Merge "Settings: Add LongClick SwitchButton (2/2)" into kk4.4
Merge "Apn settings fixes / code maintainence (1/2)" into kk4.4
Merge "Fix FC when trying to adjust radio band via *#*#4636#*#* dialer code." into kk4.4
Merge "Always show band 0" into kk4.4
Merge "settings: fix exception in BatterySipper.getQuickNameIconForUid" into kk4.4
Merge branch 'kk4.4' of https://github.com/SlimRoms/packages_apps_Settings into kk4.4
Dont show "Erase SD Card" when there is none

On devices with physcal, external SD Cards, the "Erase SD card"
option in in Settings/Storage is available even when there is
no SD card present, this dont make much sense since you cannot
erase a card that is absent. With this change the erase option
is bound to the mount toggle which leads to the following
consequences:

 Card present and mounted -> Erase enabled
 Card present but unmounted -> Erase enabled
 No card present -> Erase disabled
 Card present and MTP attached -> Erase disabled

Change-Id: I756ae8af3e0565febaf940df5f4991dd89105bd9
Fix elapsed time formatting.

We should extend DateUtils to provide this kind of elapsed time
formatting via icu4c, but for now let's at least fix our
arithmetic.

Bug: https://code.google.com/p/android/issues/detail?id=61479
Change-Id: I6c087dbb9fdbff0a21d9243d239126fee180454c
Add CPU & RAM info.

Patch Set 2 : Fixed tabs

Change-Id: I1f8bdd0ea148e7de2e14886fc8972870cb26588d

Conflicts:
	res/xml/device_info_settings.xml
	src/com/android/settings/DeviceInfoSettings.java
Fix null pointer exceptions in NetworkPolicyEditor

This upload fixes a null pointer exception issue.
After this fix the modified methods return
their corresponding default values instead of null.

Change-Id: Idb94f8b808b8dd18be5e3fc92cc5560ce0f81c4f
Settings: Minimum Vibration Duration (2/2)

PS2: Remove from devices without vibration
PS3: Get correct value on re-entry.

Change-Id: I37238cf08141061bcca392e7deacfc0be23c3120
Commit Ie63fa1018ffb7bc419e4d7915419657de30f5b22 translated to Russian

Change-Id: Ic3f3856a53b9a21ac768635c229106b40923bf0b