mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Successful refactor of CategoriesAdapter into separate file
This commit is contained in:
parent
a34d1217c3
commit
264f5de4c2
1 changed files with 3 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ public class CategoriesAdapter extends BaseAdapter {
|
|||
CheckedTextView checkedView;
|
||||
|
||||
if(view == null) {
|
||||
checkedView = (CheckedTextView) getActivity().getLayoutInflater().inflate(R.layout.layout_categories_item, null);
|
||||
checkedView = (CheckedTextView) mInflater.inflate(R.layout.layout_categories_item, null);
|
||||
|
||||
} else {
|
||||
checkedView = (CheckedTextView) view;
|
||||
|
|
@ -81,6 +81,7 @@ public class CategoriesAdapter extends BaseAdapter {
|
|||
return checkedView;
|
||||
}
|
||||
|
||||
/*
|
||||
// TODO: Separator getView reference
|
||||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
ViewHolder holder = null;
|
||||
|
|
@ -110,4 +111,5 @@ public class CategoriesAdapter extends BaseAdapter {
|
|||
public static class ViewHolder {
|
||||
public TextView textView;
|
||||
}
|
||||
*/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue