aboutsummaryrefslogtreecommitdiff
path: root/sdk/src/java/cyanogenmod/preference/SystemSettingSwitchPreference.java
Commit message (Collapse)AuthorAgeFilesLines
* cmsdk: Add constraints and behaviors for our preferencesSteve Kondik2016-09-191-2/+2
| | | | | | | | | | | | * Add a new set of attributes which can be declared in the preference XML which will cause the preference to be removed from the hierarchy if the constraint is not met. Currently we can check for installed packages, system properties, config references, and system features. * CMPartsPreference is also updated to use similar logic based on the external XML. Change-Id: If8fb39cd3312623e38bb3498bfb3f29ed8b444d6
* cmsdk: Add CMSettings preference helpersSteve Kondik2016-09-081-0/+63
* These lived in the Settings app previously, but are now moved as we need them in a few places. * The support library required to use these helpers, but we intentionally reference it using LOCAL_JAVA_LIBRARIES so the application will need to declare a dependency. Change-Id: I56844def5e1100ca0300d0027312cc9adcaab941