Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Fix #21 some files not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiselrahman committed Feb 27, 2019
1 parent c72dda4 commit 3cc331d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class FileLoader extends CursorLoader {

selectionBuilder.append("(");

boolean hasMime = (rootPath == null && !selectionArgs.isEmpty()) || selectionArgs.size() == 0;
boolean hasMime = (rootPath == null) ? !selectionArgs.isEmpty() : selectionArgs.size() > 1;
if (hasMime) {
selectionBuilder.append(MIME_TYPE).append(" = ?");
int size = selectionArgs.size();
Expand Down

0 comments on commit 3cc331d

Please sign in to comment.