Merge "Lowercasing search query in ExternalStorageProvider#querySearchDocs." into nyc-mr1-dev

This commit is contained in:
Ben Lin
2016-08-19 22:06:07 +00:00
committed by Android (Google) Code Review

View File

@@ -566,6 +566,7 @@ public class ExternalStorageProvider extends DocumentsProvider {
throws FileNotFoundException {
final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection));
query = query.toLowerCase();
final File parent;
synchronized (mRootsLock) {
parent = mRoots.get(rootId).path;