Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed Eateries issue #49 #52

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed issue 49
mohanish3 committed Jul 9, 2018
commit a4b3b742bb007ae4edc16b716e75fbf37c89f2b6
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ protected void onCreate(final Bundle savedInstanceState) {

recyclerView = (RecyclerView)findViewById(R.id.eateriesRecyclerView);
layoutManager = new LinearLayoutManager(this);
adapter = new EateriesAdapter(eateriesList, this);
adapter = new EateriesAdapter(eateriesList);
recyclerView.setLayoutManager(layoutManager);
recyclerView.setAdapter(adapter);

Original file line number Diff line number Diff line change
@@ -16,11 +16,8 @@

public class EateriesAdapter
extends RecyclerView.Adapter<EateriesAdapter.ViewHolder> {
private Context context;
private ArrayList<EateriesList> eateriesList = new ArrayList<>();

public EateriesAdapter(ArrayList<EateriesList> list, Context context) {
this.context = context;
public EateriesAdapter(ArrayList<EateriesList> list) {
eateriesList = list;
}