From a44fb7bdd056b727f84f6a14617af268e82f90de Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Apr 2013 00:52:43 -0400 Subject: [PATCH] Android Related - A tiny simplification/readability change for NativeListView. In this case, contains functions pretty much the same way, just more readable. --- .../org/dolphinemu/dolphinemu/NativeListView.java | 14 +++++++------- 1 file 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())); } }