Skip to content

Commit 3156a7f

Browse files
committed
style: use value-param context, private intent
1 parent 07582c0 commit 3156a7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

voice/src/main/kotlin/com/algolia/instantsearch/voice/VoiceSpeechRecognizer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import android.speech.SpeechRecognizer
88

99

1010
class VoiceSpeechRecognizer(
11-
private val context: Context,
11+
context: Context,
1212
private val maxResults: Int = 1,
1313
private val language: String? = null
1414
) {
@@ -27,7 +27,7 @@ class VoiceSpeechRecognizer(
2727

2828
private val speechRecognizer = SpeechRecognizer.createSpeechRecognizer(context)
2929

30-
val intent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH).also { intent ->
30+
private val intent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH).also { intent ->
3131
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM)
3232
intent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true)
3333
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, maxResults)

0 commit comments

Comments
 (0)