diff --git a/app/src/main/java/com/codepath/example/customadapterdemo/CustomListActivity.java b/app/src/main/java/com/codepath/example/customadapterdemo/CustomListActivity.java index 071f404..fdcc2fa 100644 --- a/app/src/main/java/com/codepath/example/customadapterdemo/CustomListActivity.java +++ b/app/src/main/java/com/codepath/example/customadapterdemo/CustomListActivity.java @@ -16,11 +16,8 @@ protected void onCreate(Bundle savedInstanceState) { } private void populateUsersList() { - // Construct the data source ArrayList arrayOfUsers = User.getUsers(); - // Create the adapter to convert the array to views CustomUsersAdapter adapter = new CustomUsersAdapter(this, arrayOfUsers); - // Attach the adapter to a ListView ListView listView = (ListView) findViewById(R.id.lvUsers); listView.setAdapter(adapter); }