Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Change the name of a variable in FolderBrowser.java to bett…
…er reflect its purpose

Compressed file formats are not valid, so it's best to rename this to invalidExts.
  • Loading branch information
lioncash committed Aug 13, 2013
1 parent b823983 commit 2d7244f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -31,7 +31,7 @@ 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> archiveExts = new HashSet<String>(Arrays.asList(".zip", ".rar", ".7z"));
Set<String> invalidExts = new HashSet<String>(Arrays.asList(".zip", ".rar", ".7z"));

// Search for any directories or supported files within the current dir.
try
Expand All @@ -52,7 +52,7 @@ private void Fill(File currDir)
{
fls.add(new GameListItem(m_activity, entryName,getString(R.string.file_size)+entry.length(),entry.getAbsolutePath(), true));
}
else if (archiveExts.contains(entryName.toLowerCase().substring(entryName.lastIndexOf('.'))))
else if (invalidExts.contains(entryName.toLowerCase().substring(entryName.lastIndexOf('.'))))
{
fls.add(new GameListItem(m_activity, entryName,getString(R.string.file_size)+entry.length(),entry.getAbsolutePath(), false));
}
Expand Down

0 comments on commit 2d7244f

Please sign in to comment.