Update game selection to prevent launching BIOS for all

This commit is contained in:
TwistedUmbrella 2014-01-16 23:40:51 -05:00
parent a22f8eb961
commit d36b58c0f4
1 changed files with 4 additions and 7 deletions

View File

@ -325,19 +325,16 @@ public class FileBrowser extends Fragment {
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);
}
});