Skip to content

armgit / andee

Public Imported from GitHub
0

Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。

Update matches function to include userInitiated parameter

李融eccac9f65a9b
diff --git a/app/src/main/java/net/kuafuai/andee/asr/VoiceExitCommand.kt b/app/src/main/java/net/kuafuai/andee/asr/VoiceExitCommand.kt
index 8c2e115..5e5a1a1 100644
--- a/app/src/main/java/net/kuafuai/andee/asr/VoiceExitCommand.kt
+++ b/app/src/main/java/net/kuafuai/andee/asr/VoiceExitCommand.kt
@@ -21,5 +21,6 @@ internal object VoiceExitCommand {
"Andee 休息一下", "安迪休息一下", "安迪你先休息一下",
).map(::normalize).toSet()
- fun matches(text: String): Boolean = normalize(text) in commands
+ fun matches(text: String, userInitiated: Boolean = true): Boolean =
+ userInitiated && normalize(text) in commands
}