I'm having issues with understanding which activity launched my adapter. Both activities request the adapter pretty much the same so I thought using the same adapter for both of the recyclerViews in the 2 activities. For some reason, in the debugger I found that (obviously) the context.getApplicationInfo().name has value, but when I try to use "g" it equals null...
public class CustomCatalogAdapter extends RecyclerView.Adapter<CustomCatalogAdapter.MyViewHolder>{
private Context mContext;
...
@Override
public void onBindViewHolder(CustomCatalogAdapter.MyViewHolder holder, final int position) {
ApplicationInfo applicationInfo = mContext.getApplicationInfo();
String g = applicationInfo.name;
}
}