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:
Vincent Breitmoser
2018-06-06 15:11:25 +02:00
parent 98dc854d03
commit 635ee3e876

View File

@@ -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