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

Fixed a bug and broke stuff

parent 5b667916
...@@ -44,17 +44,17 @@ public class ThaiAsyncTask extends AsyncTask<Void, Void, ArrayAdapter<String>> ...@@ -44,17 +44,17 @@ public class ThaiAsyncTask extends AsyncTask<Void, Void, ArrayAdapter<String>>
databaseInterface dbi = new databaseInterface(); databaseInterface dbi = new databaseInterface();
thaiResults = dbi.getPlaylistByAttributes(cuisine, vibe, time); thaiResults = dbi.getPlaylistByAttributes(cuisine, vibe, time);
songNamesList = new ArrayList<>();
for(int i = 0; i < thaiResults.size(); i++) { for(int i = 0; i < thaiResults.size(); i++) {
songNames[i] = dbi.getSongTitle(thaiResults.get(i)); songNamesList.add(dbi.getSongTitle(thaiResults.get(i)));
} }
songNamesList = new ArrayList<>(Arrays.asList(songNames)); /*attributesSong1 = dbi.getAttributesBySongID(thaiResults.get(0));
attributesSong1 = dbi.getAttributesBySongID(thaiResults.get(0));
attributesSong2 = dbi.getAttributesBySongID(thaiResults.get(1)); attributesSong2 = dbi.getAttributesBySongID(thaiResults.get(1));
attributesSong3 = dbi.getAttributesBySongID(thaiResults.get(2)); attributesSong3 = dbi.getAttributesBySongID(thaiResults.get(2));
attributesSong4 = dbi.getAttributesBySongID(thaiResults.get(3)); attributesSong4 = dbi.getAttributesBySongID(thaiResults.get(3));
attributesSong5 = dbi.getAttributesBySongID(thaiResults.get(4)); attributesSong5 = dbi.getAttributesBySongID(thaiResults.get(4));
attributesSong6 = dbi.getAttributesBySongID(thaiResults.get(5)); attributesSong6 = dbi.getAttributesBySongID(thaiResults.get(5));
attributesSong7 = dbi.getAttributesBySongID(thaiResults.get(6)); attributesSong7 = dbi.getAttributesBySongID(thaiResults.get(6));*/
ArrayAdapter thaiAdapter = new ArrayAdapter<String>( ArrayAdapter thaiAdapter = new ArrayAdapter<String>(
......
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