Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Android Related - A tiny simplification/readability change for Native…
…ListView.

In this case, contains functions pretty much the same way, just more readable.
  • Loading branch information
lioncash committed Apr 15, 2013
1 parent 7772f0d commit a44fb7b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Source/Android/src/org/dolphinemu/dolphinemu/NativeListView.java
Expand Up @@ -16,7 +16,7 @@

public class NativeListView extends ListActivity {
private FileArrayAdapter adapter;
static private File currentDir = null;
private static File currentDir = null;

private void Fill(File f)
{
Expand All @@ -33,12 +33,12 @@ private void Fill(File f)
if(ff.isDirectory())
dir.add(new Option(ff.getName(),"Folder",ff.getAbsolutePath()));
else
if (ff.getName().toLowerCase().indexOf(".gcm") >= 0 ||
ff.getName().toLowerCase().indexOf(".iso") >= 0 ||
ff.getName().toLowerCase().indexOf(".wbfs") >= 0 ||
ff.getName().toLowerCase().indexOf(".gcz") >= 0 ||
ff.getName().toLowerCase().indexOf(".dol") >= 0 ||
ff.getName().toLowerCase().indexOf(".elf") >= 0)
if (ff.getName().toLowerCase().contains(".gcm") ||
ff.getName().toLowerCase().contains(".iso") ||
ff.getName().toLowerCase().contains(".wbfs") ||
ff.getName().toLowerCase().contains(".gcz") ||
ff.getName().toLowerCase().contains(".dol") ||
ff.getName().toLowerCase().contains(".elf"))
fls.add(new Option(ff.getName(),"File Size: "+ff.length(),ff.getAbsolutePath()));
}
}
Expand Down

0 comments on commit a44fb7b

Please sign in to comment.