mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-09 19:10:42 +00:00
No issue: null check context on permission granted (#2104)
This commit is contained in:
parent
e76c618c2a
commit
97e4f43fda
@ -257,10 +257,12 @@ class SearchFragment : Fragment(), BackHandler {
|
||||
REQUEST_CODE_CAMERA_PERMISSIONS -> qrFeature.withFeature {
|
||||
it.onPermissionsResult(permissions, grantResults)
|
||||
|
||||
if (context!!.isPermissionGranted(Manifest.permission.CAMERA)) {
|
||||
context?.let { context: Context ->
|
||||
if (context.isPermissionGranted(Manifest.permission.CAMERA)) {
|
||||
permissionDidUpdate = true
|
||||
}
|
||||
}
|
||||
}
|
||||
else -> super.onRequestPermissionsResult(requestCode, permissions, grantResults)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user