Commit a005ea7b authored by jake.ejraee's avatar jake.ejraee

I sure hope this works

parent 188ede9b
......@@ -94,6 +94,18 @@ public class playlistView extends AppCompatActivity {
thaiAsyncTask.listView = findViewById(R.id.playlistView);
thaiAsyncTask.execute();
playlistView = thaiAsyncTask.listView;
playlistView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View v, int position, long arg3) {
Intent intent = new Intent(playlistView.getContext(), SongInformationPage.class);
intent.putExtra("song_name", playlistView.getItemAtPosition(position).toString());
intent.putExtra("tag1_name", cuisine);
intent.putExtra("tag2_name", timeOfDay);
intent.putExtra("tag3_name", vibe);
startActivity(intent);
}
});
Button save = (Button)findViewById(R.id.saveButton);
//save.setOnClickListener(save()); //when the button is pressed save should be implemeted
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment