mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-18 20:08:53 +01:00
added missing manifest query intent for SpeechRecognizer.isRecognitionAvailable() call
made stt button only become visible if stt service is available regardless of settings value
This commit is contained in:
@@ -566,11 +566,12 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
||||
if (state.scheduling)
|
||||
scheduleAction.onNext(true)
|
||||
|
||||
if (prefs.showStt.get()) {
|
||||
// if stt is available and preference is set to show stt button
|
||||
if (isSpeechRecognitionAvailable() && prefs.showStt.get()) {
|
||||
speechToTextFrame.isVisible = true
|
||||
|
||||
var xPercent = prefs.showSttOffsetX.get()
|
||||
var yPercent = prefs.showSttOffsetY.get()
|
||||
val xPercent = prefs.showSttOffsetX.get()
|
||||
val yPercent = prefs.showSttOffsetY.get()
|
||||
|
||||
// if the stt icon has a custom position, move it
|
||||
if ((xPercent != Float.MAX_VALUE) && (yPercent != Float.MAX_VALUE)) {
|
||||
|
||||
Reference in New Issue
Block a user