diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt index d59f97dd..19f68fa7 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt @@ -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() } }