Settings: Don't crash if we pause too quickly

Notifier is unregistered in every case in pause.
However, if you close the Settings app too quick, the notifier
might not be registered at all, causing an IllegalArgumentException
during the unregistering.

Change-Id: I54141cbfc91d08c28ef524f4155b673ae8dee90e
[2/2] Settings: Make menu unlock configurable

For devices with hardware menu keys, menu unlock is turned on by default
This can cause unintentional unlocks. This commit adds the ability to turn
Menu Unlock on or off as desired (Settings -> Security)

System Default is for menu unlock to be ON. This default value can be
overriden using a device overlay:

overlay/frameworks/base/packages/Keyguard/res/values/config.xml
<!-- Allow the menu hard key to be disabled in LockScreen on some devices -->
    <bool name="config_disableMenuKeyInLockScreen">true</bool>

This commit requires the matching commit from frameworks_bases repo:
https://gerrit.slimroms.net/#/c/2394/

Based on: https://gerrit.omnirom.org/#/c/3318/

PS7: update overlay location
PS8: fix config value retrieval
PS9: rebase
PS10: catch NPE of mMenuUnlock if screen lock 'pattern' is used

Conflicts:
	res/values/slim_strings.xml

Change-Id: I8fc38b17315a050b10bb6d5fb13f6abf0f306e08

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/SecuritySettings.java
Status bar brightness control

+ added some fixes to original implementation (thanks mostly cm for that)
+ add multiuser support

Change-Id: I108086b07dea9cc6d59bfbdd9652b3aa33dcfe74
[2/3]TeloRadio packages_apps_Settings
	* List of settings
		> Enable manager
		> Use LTE
		> 2G with Wi-Fi
		> 2G with screen off
		> 3G to unlock
Merge remote-tracking branch 'settings/kitkat-remix' into remix-legacy

Conflicts:
	AndroidManifest.xml
	res/values/pa_strings.xml
Settings: DE translation

PS3: updated see through/blur lockscreen string
PS4: fixed missing 'g' + updated led string changes

Change-Id: I8725ca42ddbb20b40f85dc5f60c61a66ecab774a
Settings: catalan translations

PS2: Update led translations with new clean up.

Change-Id: Ie5d6ed5d0a079059956e342c1df7e8f70b5693b5
Settings : Add FR translations for PA strings

PS2: Removed a duplicate file, sorry about that.
PS3: Corrected a typo.
PS4: Updated led translations.

Change-Id: I00cb95aa30677d22781864ad05ffc993955a61fa
Rework notification LED a bit.

* Clean up code, improve logic.

PS6: According to android writing style update string for "OK"
     https://developer.android.com/design/style/writing.html
PS7: Whitespaces.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I5408d895b52255a8352ebe8ea1a79be92af9c1a1
Custom lockscreen wallpaper [2/2]

Based on commit of ParanoidAndroid on android 4.3
Merge remote-tracking branch 'settings/kitkat-remix' into remix-legacy

Conflicts:
	src/com/android/settings/AOSPAL/AdditionalSettings.java
	src/com/android/settings/SecuritySettings.java
Disable navbar options if navbar is disabled
Revert "[1/2] Setting: Lockscreen maximized widgets"

We already have it

This reverts commit dc66efd0ff548eae9e4180eb3f211aebfa4962c2.

Conflicts:
	res/values/pa_strings.xml
	src/com/android/settings/SecuritySettings.java
Merge remote-tracking branch 'settings/kitkat-remix' into remix-legacy

Conflicts:
	res/values/pa_strings.xml
	res/xml/security_settings_chooser.xml
	src/com/android/settings/SecuritySettings.java
Remove 'Allow custom buttons' checkbox (2/2)

Let hardware buttons be rebound by default.

Change-Id: If19fb357cf9dcea419bea6242f4fc1f388916e4d

Conflicts:
	res/values-ca/cm_strings.xml
	res/values-de/cm_strings.xml
	res/values-es/cm_strings.xml
	res/values-it/cm_strings.xml
	res/values-lt/cm_strings.xml
	res/values-nl/cm_strings.xml
	res/values-pl/cm_strings.xml
	res/values-pt/cm_strings.xml
	res/values-ru/cm_strings.xml
	res/values-th/cm_strings.xml
	res/xml/button_settings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java
Move "battery around unlock ring" feature to AdditionalSettings

This looks more better to me
Merge remote-tracking branch 'settings/kitkat-remix' into remix-legacy
Fix: custom lockscreen handle to small
Merge branch 'kitkat-remix' of github.com:AOSPAL/android_packages_apps_Settings into kitkat-remix
Lockscreen wallpaper: show error if cropping not supported