0

I'm having issues related to this question Starting DialogFragment from a class extending RecyclerView.ViewHolder .

I have try the solution given and I'm facing an error with getSupportFragmentManager() method.

    Error:(147, 15) error: no suitable method found for 
    show(android.support.v4.app.FragmentManager,String)
    method DialogFragment.show(android.app.FragmentManager,String) is not applicable
   (argument mismatch; android.support.v4.app.FragmentManager cannot be converted to android.app.FragmentManager)
    method DialogFragment.show(FragmentTransaction,String) is not applicable
   (argument mismatch; android.support.v4.app.FragmentManager cannot be converted to FragmentTransaction)
AlexTa
  • 5,133
  • 3
  • 29
  • 46

1 Answers1

0

You need to extends your dialog fragment class from android.support.v4.app.DialogFragment and not from android.app.DialogFragment

elgringo
  • 73
  • 6