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