Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: Notify multiple URIs for related tables #85

Open
muncescu1 opened this issue May 27, 2015 · 0 comments
Open

FEATURE REQUEST: Notify multiple URIs for related tables #85

muncescu1 opened this issue May 27, 2015 · 0 comments

Comments

@muncescu1
Copy link

I have the following tables:
Person:
{
"fields": [
{
"name": "person_name",
"type": "String",
"nullable": false
}
]
}
Addresses:
{
"fields": [
{
"name": "person_id",
"type": "Long",
"nullable": false,
"foreignKey": {
"table": "Person",
"onDelete": "CASCADE"
}
},
{
"name": "address_name",
"type": "String",
"nullable": false
}
]
}

I use CursorLoaders for the Person and Addresses table. A person can have multiple addresses. The problem is that if I delete a Person, I need the ContentProvider to also notify the CursorLoader for Adresses. Basically for delete notify besides the URI for Person, the URI for Addresses. This can be expanded to all CRUD operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants