For #1851: QR code scanner doesn't load right after permission grant

nightly-build-test
Colin Lee 5 years ago committed by Emily Kager
parent 5b4effa96a
commit 6199d31924

@ -229,6 +229,15 @@ class SearchFragment : Fragment() {
}
}
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray) {
when (requestCode) {
REQUEST_CODE_CAMERA_PERMISSIONS -> qrFeature.withFeature {
it.onPermissionsResult(permissions, grantResults)
}
else -> super.onRequestPermissionsResult(requestCode, permissions, grantResults)
}
}
companion object {
private const val REQUEST_CODE_CAMERA_PERMISSIONS = 1
}

Loading…
Cancel
Save