mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 08:22:16 +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.
|
||||
*/
|
||||
class QRScannerCameraClosedBR : BroadcastReceiver() {
|
||||
|
||||
private val logger = LoggerFactory.getLogger(QRScannerCameraClosedBR::class.java)
|
||||
|
||||
companion object {
|
||||
val intentFilter = IntentFilter("com.yubico.authenticator.QRScannerView.CameraClosed")
|
||||
}
|
||||
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user