Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Only show valid files in the file browser.
  • Loading branch information
lioncash committed Aug 23, 2013
1 parent c2dac38 commit d9485cb
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -50,7 +50,6 @@ private void Fill(File currDir)

// Supported extensions to filter by
Set<String> validExts = new HashSet<String>(Arrays.asList(".gcm", ".iso", ".wbfs", ".gcz", ".dol", ".elf", ".dff"));
Set<String> invalidExts = new HashSet<String>(Arrays.asList(".zip", ".rar", ".7z"));

// Search for any directories or files within the current dir.
for(File entry : dirs)
Expand All @@ -73,10 +72,6 @@ else if (entry.isFile() && hasExtension)
{
fls.add(new FolderBrowserItem(entryName, getString(R.string.file_size)+entry.length(), entry.getAbsolutePath(), true));
}
else if (invalidExts.contains(entryName.toLowerCase().substring(entryName.lastIndexOf('.'))))
{
fls.add(new FolderBrowserItem(entryName, getString(R.string.file_size)+entry.length(), entry.getAbsolutePath(), false));
}
}
}
}
Expand Down

0 comments on commit d9485cb

Please sign in to comment.