Use Filename as key for content URI, not id

This commit is contained in:
YuviPanda 2013-01-30 23:26:22 +05:30
parent 64e16ad1cc
commit d1b088581f

View file

@ -73,7 +73,7 @@ public class ContributionsContentProvider extends ContentProvider{
throw new IllegalArgumentException("Unknown URI: " + uri);
}
getContext().getContentResolver().notifyChange(uri, null);
return Uri.parse(BASE_PATH + "/" + id);
return Uri.parse(BASE_PATH + "/" + contentValues.get(Contribution.Table.COLUMN_FILENAME));
}
@Override