Fix NPE.

When entering the notification prefs sub activity without the increasing
ring pref being visible and leaving it right away, onActivityStop()
threw an NPE because the handler wasn't yet constructed.

Change-Id: Ia4291d8ac3d1dbf76d432db7e0e973844163c4ae
Temp: Tint the settings drawable for the Privacy category

This should solve the "invisible" drawable problem until
we make new ones.

Change-Id: Ieda4d77789225debe0f7463b2b605c2d7df72c3b
Settings: Disable/Enable screenshot sound [2/2]

Change-Id: I4eb57ebf23bf89de9f1dcee0395d6907cb84023e
[2/2] Settings: Battery and Notification Lights (PS6)

PS2: *) Move menu options to sounds and notification
     *) Remove samm debug cruft

PS5: *) Update UI

Put together from:

Author: DvTonder <david.vantonder@gmail.com>
Date:   Fri Apr 6 07:39:11 2012 -0400

    Settings: Notification light(LED) settings

    This commit adds the ability to configure the Notification light
    color and pulse rate both for the default and a custom applications
    list.

    This work was done in collaboration with Marko Mihovilić (m1h4) who
    wrote the initial implementation as a stand-alone application and
    helped with the fixes below.

    NOTE: Google Talk notifications originate from the "Google Services
    Framework" so in order to override their settings you need to add
    this package instead of the Google Talk package.

    Change-Id: I6837210367123bc02ea27a9b7b6b3cf80c738bf1

Author: Danny Baumann <dannybaumann@web.de>
Date:   Thu Nov 7 09:04:29 2013 +0100
Add back notification light settings.
Change-Id: I474a14a1b395407f5ca273a5d6a3a7f03f7e4698

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Sat Jan 4 15:52:47 2014 -0800
Settings: fix led pulsespeedoff disable behaviour
Keep led pulsespeedoff disabled if pulsespeedon is
disabled.  This ensures that pulsespeedoff stays
disabled if onOffChangeable was set to false.  Fixes
problem where charged led pulsespeed off looks to
be configurable in the ui and thereby creating user
confusion.
Change-Id: I6ac7f630544bf719b39e1ddcab435322975430c8

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Tue Dec 31 12:11:05 2013 -0800
[1/2] Settings: instant led test
Show LED color in realtime when configuring
notification colors.
Requires framework patch for notification
extra EXTRA_FORCE_SHOW_LIGHTS.
Change-Id: Ic7858d79cb2351c407afd547b33652a9e04ef1b9

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Sat Feb 1 18:36:15 2014 -0800
Settings LightSettingsDialog: update led on text change
Change-Id: I135f37829b9b4fb2166afac9d9531b76a62f3ef7

Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Jun 25 08:56:17 2014 +0200
Deduplicate adapter-of-installed-packages code.
Change-Id: I454ba79eddaaff86233a2cc341f4c8bebe94729e

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Fri Oct 17 00:48:17 2014 +0300
Fix copyright headers
Change-Id: I7934d01f89953e577c3cb074dce608d9bedd4027

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Wed Oct 22 02:23:15 2014 +0300
Add support for single color notification LED (2/2)
Change-Id: I4cf21dda3d9e311146149c2ec81fe2398f5f9f87

Change-Id: Ie1203c64484c7d9bed0a6bc0b2808e69ef4bfa35

Patchset: 6
http://review.cyanogenmod.org/#/c/78817/

Conflicts:
	res/values/cm_strings.xml
Settings: XuiMod: Toast Animations [2/2]

Credit zst123, thanks for GwonHyeok

Change-Id: Ic9bf076a4693615c02009aec7239b2fae6da00ce
Settings: Disable Immersive Messages [1/2]

Change-Id: I8a469f786b98652b22421f4176c28bf4ae8086b5
Open app when clicking on icon in App Info screen

Based on Xposed module Shortcut in App Info:
http://repo.xposed.info/module/com.mohammadag.shortcutinappinfo

There is no vibration as in the module as I didn't find it necessary

Change-Id: I07b3f947aaaa13702adba3b4e78bb780fe861baf
Lockscreen: Add timeout and instant lock option to slide lock (1/2)

This adds AOSP's new timeout and instant lock options to the
slide (aka chooser) style lockscreen.
To Do: Add the vibrate option as well.

AICPfy:
brought from kitkat
PS2: CheckBox -> Switch

Change-Id: Ide8e8d14603e5111debcc7a7cf6c4b74898bfa3d
Remove system updates

Change-Id: I2fce8361a4d28c71498d24359a07b0864a467f41
Remove taps to become a developer

Developer settings are enabled by default, so having this "feature"
in the Settings app is pointless and annoying. Remove it to improve
the UX.

Change-Id: I34919c811b04197b95ac71233827cf8f66ef7087
Show full proc/version information

Change-Id: Ic341d0d3865af491f9850deba4e2bc16cc3e0514
Enable Developer options by default

Change-Id: I2cfc1b2d0e918f5df3ee6b794084caf67b44de41
Make easy to add a checkbox preference

based from Cyanogenmod, but im adding more preferences :D
use SystemCheckBoxPreference if you want adding option for Settings.System
use SecureCheckBoxPreference if you want adding option for Settings.Secure
use GlobalCheckBoxPreference if you want adding option for Settings.Global

example:

we always using like this

    <CheckBoxPreference
        android:key="soft_back_kill_app"
        android:title="@string/soft_back_kill_app_title"
        android:summary="@string/soft_back_kill_app_summary"
        android:persistent="false"/>

and put preference into java code

but with this patch, we can use like this

    <org.omnirom.omnigears.preference.SystemCheckBoxPreference
        android:key="soft_back_kill_app_enable" << put key from android.provider.Settings
        android:title="@string/soft_back_kill_app_title"
        android:summary="@string/soft_back_kill_app_summary" />

the preference will always use presistent command

no need to add this preference into java code again :)
and say goodbye to bad java code style xD

Change-Id: I7da95d0db61c76ffcfc23c40dd711d322ac3bb29
Add fastscroll to the Manage applications screen

so you don't need to scroll so much if you have alot of apps
and want to go to the bottom of the list.

Change-Id: I96d892abf53a9da784ae1df056558d4fd3cf64f6

Conflicts:
	res/layout/manage_applications_apps.xml
Launch SuperSU from Settings

If SuperSU is installed, show an entry in Settings below
"Developer options", which launches SuperSU when tapped.
At boot time SuperSU will detect if com.android.settings
contains the resources from this patch, and if so it
will hide itself from the launcher. This was implemented
in v1.85, so we only show the entry if the installed
SuperSU version is at least that.

Change-Id: I2af95a1a4396101ff87448cd0ae20addf235af52
Partition Info

Change-Id: I29d64c2789ecf829c6e85adcbb2e211e87943158
Make easy to add a checkbox preference

based from Cyanogenmod, but im adding more preferences :D
use SystemCheckBoxPreference if you want adding option for Settings.System
use SecureCheckBoxPreference if you want adding option for Settings.Secure
use GlobalCheckBoxPreference if you want adding option for Settings.Global

example:

we always using like this

    <CheckBoxPreference
        android:key="soft_back_kill_app"
        android:title="@string/soft_back_kill_app_title"
        android:summary="@string/soft_back_kill_app_summary"
        android:persistent="false"/>

and put preference into java code

but with this patch, we can use like this

    <org.omnirom.omnigears.preference.SystemCheckBoxPreference
        android:key="soft_back_kill_app_enable" << put key from android.provider.Settings
        android:title="@string/soft_back_kill_app_title"
        android:summary="@string/soft_back_kill_app_summary" />

the preference will always use presistent command

no need to add this preference into java code again :)
and say goodbye to bad java code style xD

Change-Id: I7da95d0db61c76ffcfc23c40dd711d322ac3bb29 (reverted from commit 6081118cd21f07845271b2419adf2fb5a509b357)
Make easy to add a checkbox preference

based from Cyanogenmod, but im adding more preferences :D
use SystemCheckBoxPreference if you want adding option for Settings.System
use SecureCheckBoxPreference if you want adding option for Settings.Secure
use GlobalCheckBoxPreference if you want adding option for Settings.Global

example:

we always using like this

    <CheckBoxPreference
        android:key="soft_back_kill_app"
        android:title="@string/soft_back_kill_app_title"
        android:summary="@string/soft_back_kill_app_summary"
        android:persistent="false"/>

and put preference into java code

but with this patch, we can use like this

    <org.omnirom.omnigears.preference.SystemCheckBoxPreference
        android:key="soft_back_kill_app_enable" << put key from android.provider.Settings
        android:title="@string/soft_back_kill_app_title"
        android:summary="@string/soft_back_kill_app_summary" />

the preference will always use presistent command

no need to add this preference into java code again :)
and say goodbye to bad java code style xD

Change-Id: I7da95d0db61c76ffcfc23c40dd711d322ac3bb29
cmRemiX Extra Info

Port from our Kitkat branch
https://github.com/DirtyUnicorns-KitKat/packages_apps_Settings/commit/6274d966b15d2a0a910d99aa3f13816f89746763

Change-Id: Iaaa2c137b857dc8ddc73f1464063c1f806bb12f7