https://kotlinlang.org logo
Title
u

user

07/03/2022, 1:11 PM
Permissions in a fragment? (Kotlin) How should I check if there are permissions on a fragment? What I want is that when I click on a button inside a fragment, permissions have to be checked and then open or no the gallery. open class MyFragment : Fragment() { private val REQUEST_PERMS = 1002 override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { val view = inflater.inflate(R.layout.fragment_profile, container, false) val addImageProfile =...