From d36b58c0f4d7e7d0ca39a5f563e9b49266c1bc1f Mon Sep 17 00:00:00 2001 From: TwistedUmbrella Date: Thu, 16 Jan 2014 23:40:51 -0500 Subject: [PATCH] Update game selection to prevent launching BIOS for all --- .../android/src/com/reicast/emulator/FileBrowser.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/shell/android/src/com/reicast/emulator/FileBrowser.java b/shell/android/src/com/reicast/emulator/FileBrowser.java index f6807fe73..d11019742 100644 --- a/shell/android/src/com/reicast/emulator/FileBrowser.java +++ b/shell/android/src/com/reicast/emulator/FileBrowser.java @@ -324,20 +324,17 @@ public class FileBrowser extends Fragment { childview.setTag(list.get(i)); orig_bg = childview.getBackground(); + + final File game = list.get(i); // vw.findViewById(R.id.childview).setBackgroundColor(0xFFFFFFFF); childview.findViewById(R.id.childview).setOnClickListener( new OnClickListener() { public void onClick(View view) { - File f = (File) view.getTag(); vib.vibrate(50); - mCallback.onGameSelected(f != null ? Uri - .fromFile(f) : Uri.EMPTY); - // Intent inte = new - // Intent(Intent.ACTION_VIEW,f!=null? - // Uri.fromFile(f):Uri.EMPTY,parentActivity.getBaseContext(),GL2JNIActivity.class); - // FileBrowser.this.startActivity(inte); + mCallback.onGameSelected(game != null ? Uri + .fromFile(game) : Uri.EMPTY); vib.vibrate(250); } });