fix after merge compile error

This commit is contained in:
Adam Velebil 2023-08-02 16:34:43 +02:00
parent 4f866a89ab
commit a8db39ef7b
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -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()
} }
} }