JeyDroids/android_packages_apps_OmniGears — pull request #2 by jeizon (2014-02-24 22:01:03+00:00)
Title: OmniGears: 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

and put preference into java code

but with this patch, we can use like this

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

will make all checkbox preference using this, if merged :)

depends on https://gerrit.omnirom.org/#/c/5789/ :)

Change-Id: Ied880d49ccc60c1e02615eccc6d01ddbd30bddf7