mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Add comment
This commit is contained in:
parent
e0bda6e64d
commit
6a6413bd3e
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,6 @@ public class CategorizationFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CategoriesAdapter extends BaseAdapter {
|
private class CategoriesAdapter extends BaseAdapter {
|
||||||
|
|
||||||
private Context context;
|
private Context context;
|
||||||
private ArrayList<CategoryItem> items;
|
private ArrayList<CategoryItem> items;
|
||||||
|
|
||||||
|
|
@ -300,6 +299,7 @@ public class CategorizationFragment extends Fragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getItemViewType(int position) {
|
public int getItemViewType(int position) {
|
||||||
|
// If type is 1, the line is a header, otherwise it is an item
|
||||||
return sectionHeader.contains(position) ? TYPE_SEPARATOR : TYPE_ITEM;
|
return sectionHeader.contains(position) ? TYPE_SEPARATOR : TYPE_ITEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue