Skip to content

Commit 90f05f6

Browse files
committed
Provider.query() was using the wrong notification URI
The notification URI used was the ContentProvider main URI instead of the given one. Fixes foxykeep#9
1 parent bb12542 commit 90f05f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

generator/res/provider.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ public %14$sclass %3$sProvider extends ContentProvider {
236236
String sortOrder) {
237237

238238
Cursor c = null;
239-
Uri notificationUri = %3$sContent.CONTENT_URI;
240239
UriType uriType = matchUri(uri);
241240
Context context = getContext();
242241
// Pick the correct database for this operation
@@ -258,7 +257,7 @@ public %14$sclass %3$sProvider extends ContentProvider {
258257
}
259258

260259
if ((c != null) && !isTemporary()) {
261-
c.setNotificationUri(getContext().getContentResolver(), notificationUri);
260+
c.setNotificationUri(getContext().getContentResolver(), uri);
262261
}
263262
return c;
264263
}

0 commit comments

Comments
 (0)