Commit ea0e10d7 authored by Willard's avatar Willard

Include changes to NavDrawerActivity

parent c47946e4
......@@ -79,10 +79,11 @@ public class NavDrawerActivity extends AppCompatActivity implements NavigationVi
populateFilter(AppUtils.service.getCuisines(), R.id.cuisine_checkboxes);
populateFilter(AppUtils.service.getLocations(), R.id.location_checkboxes);
ListView lv = (ListView) findViewById(R.id.listView);
adapter = new DishAdapter(this, dishes);
lv.setAdapter(adapter);
lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
ListView dishListView = (ListView) findViewById(R.id.dishListView);
dishListView.setAdapter(adapter);
dishListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent i = new Intent(NavDrawerActivity.this, DishViewActivity.class);
......
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