aboutsummaryrefslogtreecommitdiff
path: root/sdk/src/java/cyanogenmod/preference/RemotePreferenceManager.java
Commit message (Collapse)AuthorAgeFilesLines
* RemotePreferenceManager: Fix receiver registration issues.Danny Baumann2017-02-121-13/+29
| | | | | | | | | | | | | - We might get see attach() calls from multiple prefs, so stop assuming there's only one per key. Namely, a new activity might be created and attached before the previous one is destroyed - The passed-in context is likely to be an activity one. As the manager instance is static, this can cause leaks and the receiver might be attached to a destroyed activity. Just hold onto the application context instead, which is a singleton anyway. Change-Id: Ica17c19ab6e1cdfd402968ce2594d3ed362e23ee JIRA:LINN-3
* cmsdk: RemotePreference APISteve Kondik2016-10-171-0/+165
* Factoring out the work done for CMParts into an actual API that can be used for all of the various device settings apps. Change-Id: Ie1b47c900c2b37457b90f1b0af0634d5fe12fd9a