How to call dialog fragment in onclicklistener in recycler adapter
<p>I have a recycler adapter each display in fragment. When i click on item, i want that open dialog fragment. getsupportfragmentmanager is do not calling he is highlighted red. How open dialog fragment. Help me please maybe, i have wrong logic for that. </p>

<pre><code>public class TehcnikMyProfileAdapter extends RecyclerView.Adapter&lt;TehcnikMyProfileAdapter.RequestFriendViewHolder&gt; {

List&lt;Vehicles&gt; listVehicles = Collections.emptyList();
Context context;

public TehcnikMyProfileAdapter(List&lt;Vehicles&gt; list, Context context) {
    this.listVehicles = list;
    this.context = context;
}

@Override
public RequestFriendViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    //Inflate the layout, initialize the View Holder
    View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.row_layout_technik, parent, false);
    return new RequestFriendViewHolder(v);
}

@Override
public void onBindViewHolder(RequestFriendViewHolder holder, int position) {

    holder.titleFirm.setText(listVehicles.get(position).getFirmName());
    holder.titleModel.setText(listVehicles.get(position).getModelName());


    holder.titleYear.setText(String.valueOf(listVehicles.get(position).getYear()));
//        holder.countPhoto.setText(String.valueOf(listVehicles.get(position).getPhotos().size()));
        View.OnClickListener clickListener = new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               // Intent myIntent = new Intent(context, FriendProfileActivity.class);
              //  myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
              //  myIntent.putExtra("id", mUserList.get(position).getId());
            //    context.startActivity(myIntent);
            }
        };
        holder.imgvMooreOptions.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                FragmentManager manager = context.getSupportFragmentManager();
                GarageOptionDialogFragment myDialogFragment = new GarageOptionDialogFragment();
                myDialogFragment.show(manager, "dialog");
            }
        });
        holder.cv.setOnClickListener(clickListener);
    }
    @Override
    public int getItemCount() {
        //returns the number of elements the RecyclerView will display
        return listVehicles.size();
    }

    @Override
    public void onAttachedToRecyclerView(RecyclerView recyclerView) {
        super.onAttachedToRecyclerView(recyclerView);
    }

}
</code></pre>