aboutsummaryrefslogtreecommitdiff
path: root/sdk/src/java/cyanogenmod/preference/SelfRemovingPreference.java
Commit message (Collapse)AuthorAgeFilesLines
* cmsdk: Add support for more preference constraintsSteve Kondik2016-10-171-8/+17
| | | | | | | | | | | | | | | | | * Add support for negation- prefix with ! * Add requiresAction constraint, which checks if an application is available to resolve the given action * Fix issues with operations order * Add flag to remove a preference if it's intent can't be resolved * Add helper to allow setting minLines of a preference, since it's common for things to get weird with the kinds of behavior we are introducing everywhere * Add support for nuking *other* preferences. For example with Doze, many devices have custom features and a extra_settings panel which is redundant with the switch. Now we can trivially override the one we don't want. Change-Id: Ibb14b05add56b403013e908db1105dce9d34faad
* cmsdk: Add constraints and behaviors for our preferencesSteve Kondik2016-09-191-0/+55
* 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