diff --git a/app/src/main/java/fr/free/nrw/commons/category/CategoriesAdapter.java b/app/src/main/java/fr/free/nrw/commons/category/CategoriesAdapter.java index c46f3dcc2..55627a0c8 100644 --- a/app/src/main/java/fr/free/nrw/commons/category/CategoriesAdapter.java +++ b/app/src/main/java/fr/free/nrw/commons/category/CategoriesAdapter.java @@ -2,6 +2,7 @@ package fr.free.nrw.commons.category; import android.content.Context; +import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; @@ -17,11 +18,13 @@ public class CategoriesAdapter extends BaseAdapter { private Context context; private ArrayList items; + private LayoutInflater mInflater; + private static final int TYPE_ITEM = 0; private static final int TYPE_SEPARATOR = 1; private TreeSet sectionHeader = new TreeSet(); - private CategoriesAdapter(Context context, ArrayList items) { + public CategoriesAdapter(Context context, ArrayList items) { this.context = context; this.items = items; }