Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29ab48ea authored by cretin45's avatar cretin45 Committed by Ed Carrigan
Browse files

CMFM: Adjust mimetype query to account for appended user directory

Issue-id: FEIJ-331

Change-Id: I7982dfc3c453518c2358b2118a13455e899023db
(cherry picked from commit 7c7584cd)
parent e7a6ebfe
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -189,8 +189,9 @@ public class MimeTypeIndexProvider extends ContentProvider {
        if (TextUtils.isEmpty(fileRoot)) {
            throw new IllegalArgumentException("'fileRoot' cannot be null or empty!");
        }
        String selection = COLUMN_FILE_ROOT + " = ?";
        String[] selectionArgs = new String[] { fileRoot };

        String selection = COLUMN_FILE_ROOT + " LIKE ?";
        String[] selectionArgs = new String[] { fileRoot + "%" };
        return context.getContentResolver().query(MimeTypeIndexProvider.getContentUri(),
                null, selection, selectionArgs, null);
    }