diff options
author | Danny Baumann <dannybaumann@web.de> | 2017-02-23 17:49:45 -0600 |
---|---|---|
committer | Brinly Taylor <brinly@brinly.me> | 2017-03-13 04:51:13 +0000 |
commit | 9382b6a75fb1e7bf6c73d1185e8119f8bb34c563 (patch) | |
tree | 5afdb16cfd32c3553a85655cecfa7aaf7f0471f3 | |
parent | c50ddc2104248a65b4b17f8b3cf70fa91d82588f (diff) | |
download | vendor_cmsdk-9382b6a75fb1e7bf6c73d1185e8119f8bb34c563.zip vendor_cmsdk-9382b6a75fb1e7bf6c73d1185e8119f8bb34c563.tar.gz vendor_cmsdk-9382b6a75fb1e7bf6c73d1185e8119f8bb34c563.tar.bz2 |
CMSettingsProvider: remove per-user cursor observation
We don't need it because we don't support using the returned cursor
directly, and it can cause deadlocks when being called from platform
code.
Change-Id: I2f85be1152569ba27e4622d310d867e20965faa3
-rw-r--r-- | packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java index d730584..a4630df 100644 --- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java +++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java @@ -470,17 +470,6 @@ public class CMSettingsProvider extends ContentProvider { null, sortOrder); } - // the default Cursor interface does not support per-user observation - try { - AbstractCursor abstractCursor = (AbstractCursor) returnCursor; - abstractCursor.setNotificationUri(getContext().getContentResolver(), uri, userId); - } catch (ClassCastException e) { - // details of the concrete Cursor implementation have changed and this code has - // not been updated to match -- complain and fail hard. - Log.wtf(TAG, "Incompatible cursor derivation"); - throw e; - } - return returnCursor; } |