mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
Merge PR #1276.
This commit is contained in:
commit
e00244cf66
@ -107,17 +107,15 @@ internal class QRScannerView(
|
||||
}
|
||||
|
||||
private fun requestPermissions(activity: Activity) {
|
||||
coroutineScope.launch {
|
||||
methodChannel.invokeMethod(
|
||||
"beforePermissionsRequest", null
|
||||
)
|
||||
methodChannel.invokeMethod(
|
||||
"beforePermissionsRequest", null
|
||||
)
|
||||
|
||||
ActivityCompat.requestPermissions(
|
||||
activity,
|
||||
PERMISSIONS_TO_REQUEST,
|
||||
PERMISSION_REQUEST_CODE
|
||||
)
|
||||
}
|
||||
ActivityCompat.requestPermissions(
|
||||
activity,
|
||||
PERMISSIONS_TO_REQUEST,
|
||||
PERMISSION_REQUEST_CODE
|
||||
)
|
||||
}
|
||||
|
||||
private val qrScannerView = View.inflate(context, R.layout.qr_scanner_view, null)
|
||||
|
Loading…
Reference in New Issue
Block a user