Remove context reference from recyclerview adapter

This commit is contained in:
tonymanou
2017-01-26 20:43:42 +01:00
committed by topjohnwu
parent 651547ef20
commit 978b3a64c5
2 changed files with 3 additions and 9 deletions

View File

@@ -59,8 +59,7 @@ public class ReposFragment extends Fragment implements CallbackHandler.EventList
View view = inflater.inflate(R.layout.fragment_repos, container, false);
unbinder = ButterKnife.bind(this, view);
mSectionedAdapter = new
SimpleSectionedRecyclerViewAdapter(getActivity(), R.layout.section,
mSectionedAdapter = new SimpleSectionedRecyclerViewAdapter(R.layout.section,
R.id.section_text, new ReposAdapter(fUpdateRepos, fInstalledRepos, fOthersRepos));
recyclerView.setAdapter(mSectionedAdapter);