How to solve mismatch fragment

18 views Asked by At

I intend to write permission in Fragment Kotlin. I have found a simple code for activity and decided to convert into my fragment but I have a error "mismatch". Can you assist me to solve this issue?textenter image description here

I have thought to initialize new context for this fragment.

1

There are 1 answers

0
ninhnau19 On

you could replace this keyword with requireActivity()