Skip to content

Commit

Permalink
Arreglado los games
Browse files Browse the repository at this point in the history
  • Loading branch information
jalcaldea committed Oct 25, 2014
1 parent 22ebf0f commit 0082ba1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/main/java/worten/aebd/com/worten/Games.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

import worten.aebd.com.worten.juegos.Juego;
import worten.aebd.com.worten.juegos.Juegos;
Expand Down Expand Up @@ -105,17 +106,17 @@ public void onItemClick(AdapterView<?> pariente, View view, int posicion, long i
Juego elegido = (Juego) pariente.getItemAtPosition(posicion);

// pariente

/*
Intent mainIntent = new Intent();
mainIntent = new Intent().setClass(
Games.this, Juego.class);
mainIntent.putExtra("juego", elegido.getId());
startActivity(mainIntent);

// CharSequence texto = "Seleccionado: " + elegido.get_textoDebajo();
//Toast toast = Toast.makeText(Shop.this, texto, Toast.LENGTH_LONG);
//toast.show();
*/
CharSequence texto = "Seleccionado: " + elegido.getNombre();
Toast toast = Toast.makeText(Games.this, texto, Toast.LENGTH_LONG);
toast.show();
}
});

Expand Down

0 comments on commit 0082ba1

Please sign in to comment.