From c7c44c4cfbb4abea85142842a2159adfef6ef8fa Mon Sep 17 00:00:00 2001 From: sowens-csd Date: Fri, 30 Jun 2023 11:30:47 -0400 Subject: [PATCH] rf: move setupBluetooth for clarity --- .../kotlin/com/csdcorp/speech_to_text/SpeechToTextPlugin.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/speech_to_text/android/src/main/kotlin/com/csdcorp/speech_to_text/SpeechToTextPlugin.kt b/speech_to_text/android/src/main/kotlin/com/csdcorp/speech_to_text/SpeechToTextPlugin.kt index 3190097e..f2282858 100644 --- a/speech_to_text/android/src/main/kotlin/com/csdcorp/speech_to_text/SpeechToTextPlugin.kt +++ b/speech_to_text/android/src/main/kotlin/com/csdcorp/speech_to_text/SpeechToTextPlugin.kt @@ -506,7 +506,6 @@ public class SpeechToTextPlugin : activeResult = null return } - setupBluetooth() } else { if (!SpeechRecognizer.isRecognitionAvailable(localContext)) { Log.e(logTag, "Speech recognition not available on this device") @@ -517,8 +516,8 @@ public class SpeechToTextPlugin : activeResult = null return } - setupBluetooth() } + setupBluetooth() // createRecognizer(false) } else { debugLog("null context during initialization")