diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-04-15 00:52:43 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-04-15 00:52:43 -0400 |
| commit | a44fb7bdd056b727f84f6a14617af268e82f90de (patch) | |
| tree | 572502e3e4fc4f66ea1069a5660e8e63c8ff430c /Source/Android/src | |
| parent | 7772f0d071cd8f1c6b44036207b4e6f9da4d9bf7 (diff) | |
Android Related - A tiny simplification/readability change for NativeListView.
In this case, contains functions pretty much the same way, just more readable.
Diffstat (limited to 'Source/Android/src')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/NativeListView.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/NativeListView.java b/Source/Android/src/org/dolphinemu/dolphinemu/NativeListView.java index 0b30cda639..678d10f035 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/NativeListView.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/NativeListView.java @@ -16,7 +16,7 @@ import android.widget.Toast; public class NativeListView extends ListActivity { private FileArrayAdapter adapter; - static private File currentDir = null; + private static File currentDir = null; private void Fill(File f) { @@ -33,12 +33,12 @@ public class NativeListView extends ListActivity { 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())); } } |
