emad
emad

Reputation: 11

How to solve mismatch fragment

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.

Upvotes: 0

Views: 19

Answers (1)

ninhnau19
ninhnau19

Reputation: 777

you could replace this keyword with requireActivity()

Upvotes: 0

Related Questions