We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device type: Emulator OS version: API 30 EasyPermissions version: 3.0.0
What happened? onRequestPermissionsResult not executed when requesting permission from a Fragment
What did you expect to happen? onRequestPermissionsResult must be executed
class SampleFragment : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) EasyPermissions.requestPermissions( this, "Aplikasi ini memerlukan akses ke lokasi Anda", RC_LOCATION_PERMISSION, ACCESS_FINE_LOCATION ) } override fun onRequestPermissionsResult( requestCode: Int, permissions: Array<out String>, grantResults: IntArray ) { Timber.d("Permission result") super.onRequestPermissionsResult(requestCode, permissions, grantResults) EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this) } }
The "Permission result" log never appeared
The text was updated successfully, but these errors were encountered:
it is because of super.onRequestPermissionsResult(requestCode, permissions, grantResults) Unit' is deprecated.
Sorry, something went wrong.
No branches or pull requests
Basic Information
Device type: Emulator
OS version: API 30
EasyPermissions version: 3.0.0
Describe the problem
What happened?
onRequestPermissionsResult not executed when requesting permission from a Fragment
What did you expect to happen?
onRequestPermissionsResult must be executed
Code and logs
The "Permission result" log never appeared
The text was updated successfully, but these errors were encountered: