From ecb18c2f85469442f48d62b4f8e4c63c5b6fb10b Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Wed, 8 Feb 2023 10:05:10 +0100 Subject: [PATCH] Stop discovery on app pause. --- .../app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) 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)