Don't pass through selection in ExternalKeychainProvider
The external provider uses the selectionArgs parameter in a non-standard way, so it doesn't make sense to pass selection to the query independently. Also enabling strict mode here, to nail down the fields that can be requested to the contract of the provider.
This commit is contained in:
@@ -323,7 +323,8 @@ public class KeychainExternalProvider extends ContentProvider implements SimpleC
|
||||
orderBy = sortOrder;
|
||||
}
|
||||
|
||||
Cursor cursor = qb.query(db, projection, selection, null, groupBy, null, orderBy);
|
||||
qb.setStrict(true);
|
||||
Cursor cursor = qb.query(db, projection, null, null, groupBy, null, orderBy);
|
||||
qb.setCursorFactory(new CloseDatabaseCursorFactory());
|
||||
if (cursor != null) {
|
||||
// Tell the cursor what uri to watch, so it knows when its source data changes
|
||||
|
||||
Reference in New Issue
Block a user