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 a85b2c61..24652909 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt @@ -166,6 +166,7 @@ class MainActivity : FlutterFragmentActivity() { appPreferences.unregisterListener(sharedPreferencesListener) + stopUsbDiscovery() stopNfcDiscovery() if (!appPreferences.openAppOnUsb) { enableAliasMainActivityComponent(false)