mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 23:14:18 +03:00
fix after merge compile error
This commit is contained in:
parent
4f866a89ab
commit
a8db39ef7b
@ -328,12 +328,15 @@ class MainActivity : FlutterFragmentActivity() {
|
|||||||
* this receiver restarts the YubiKit NFC discovery when the QR Scanner camera is closed.
|
* this receiver restarts the YubiKit NFC discovery when the QR Scanner camera is closed.
|
||||||
*/
|
*/
|
||||||
class QRScannerCameraClosedBR : BroadcastReceiver() {
|
class QRScannerCameraClosedBR : BroadcastReceiver() {
|
||||||
|
|
||||||
|
private val logger = LoggerFactory.getLogger(QRScannerCameraClosedBR::class.java)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val intentFilter = IntentFilter("com.yubico.authenticator.QRScannerView.CameraClosed")
|
val intentFilter = IntentFilter("com.yubico.authenticator.QRScannerView.CameraClosed")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onReceive(context: Context?, intent: Intent?) {
|
override fun onReceive(context: Context?, intent: Intent?) {
|
||||||
Log.d(TAG, "Restarting nfc discovery after camera was closed.")
|
logger.debug("Restarting nfc discovery after camera was closed.")
|
||||||
(context as? MainActivity)?.startNfcDiscovery()
|
(context as? MainActivity)?.startNfcDiscovery()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user