Lowercasing search query in ExternalStorageProvider#querySearchDocs.

Bug: 30620314
Change-Id: I4203eda72c94fde11d3973274138ad88edb51e5f
This commit is contained in:
Ben Lin
2016-08-03 10:48:43 -07:00
parent f6b29b8dd5
commit b56e9213ce

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;