title: Different OnClickListener for the same Firebase adapter
body: <p>I am trying to reuse firebase adapter in two activities with different onClick Listener behaviors depending on both activities.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>        public class ProductListAdapter  {
  
  private Query mQuery;
  private Context mContext;
  private FirebaseRecyclerAdapter&lt;Product,ProductViewHolder&gt; mAdapter;
  public ProductListAdapter(Query query,Context context) {
  
      mQuery = query;
      mContext = context;
  
      Update();
  }
  
  
  
  public void Update(){
      mAdapter = new FirebaseRecyclerAdapter&lt;Product, ProductViewHolder&gt;(
              Product.class,
              R.layout.list_item_product,
              ProductViewHolder.class,
              mQuery
      ){
          @Override
          protected void populateViewHolder(ProductViewHolder viewHolder, Product model, int position) {
              viewHolder.mProductTitle.setText(model.getProductTitle());
              viewHolder.mProductDescription.setText(model.getProductDescription());
              Product product = getItem(position);
              viewHolder.bindView(product);
  
  
              Picasso.with(mContext)
                      .load(model.getPhotoUrl())
                      .into(viewHolder.mThumbnail);
  
  
          }
      };
  
  
  }
  
  public RecyclerView.Adapter getAdapter(){
      return  mAdapter;
  }
  
  public static class ProductViewHolder extends RecyclerView.ViewHolder{
  
      Product mProduct;
      TextView mProductTitle;
      TextView mProductDescription;
  
      ImageView mThumbnail;
  
      public ProductViewHolder(View itemView) {
          super(itemView);
  
          mProductTitle = (TextView) itemView.findViewById(R.id.product_title);
          mProductDescription = (TextView) itemView.findViewById(R.id.product_description);
          mThumbnail = (ImageView) itemView.findViewById(R.id.list_image);
  
  
      }
  
  
      public void bindView(Product product){
          mProduct = product;
      }
  }
  </code></pre>
  
  <p>And This is the code in calling activity which calls the firebaseadapter class, The class is returning an adapter using getAdapter Method and  which is given to recycler view:</p>
  
  <pre><code> ProductListAdapter productListAdapter = 
    new               ProductListAdapter(query,getActivity());
      RecyclerView.Adapter adapter = productListAdapter.getAdapter();
  
      mRecyclerView.setAdapter(adapter);
  </code></pre>