Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix(android): after changing the app language mid-meeting, the End button follows it

wquguru3133f9a06137
diff --git a/android/app/src/main/kotlin/com/wquguru/cicada/ListeningActivity.kt b/android/app/src/main/kotlin/com/wquguru/cicada/ListeningActivity.kt
index 41985c3..6439742 100644
--- a/android/app/src/main/kotlin/com/wquguru/cicada/ListeningActivity.kt
+++ b/android/app/src/main/kotlin/com/wquguru/cicada/ListeningActivity.kt
@@ -97,8 +97,9 @@ class ListeningActivity : Activity() {
/// 在视频上看, which has no video to go back to.
private fun buildBottom() {
val kind = cicada.listen.sourceKind
- if (kind == bottomKind) return
- bottomKind = kind
+ // Keyed on the language too: one changed in 设置 meanwhile would leave 结束 in the old one.
+ if ("$kind ${L("结束")}" == bottomKind) return
+ bottomKind = "$kind ${L("结束")}"
bottomHost.removeAllViews()
sayButton = null; sayLabel = null; sayHelper = null
if (kind != "mic" || !cicada.settings.speakBack) {
diff --git a/site/changelog.json b/site/changelog.json
index 5ad7c3c..72d1508 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -64,6 +64,14 @@
],
"title": "悬浮窗的字幕条上,你用“我说”说的那句也标出“你 · 同传”。",
"text": "原来只有纪要卡片和正在听里有这个标记,字幕条只显示原话。"
+ },
+ {
+ "kind": "fixed",
+ "platforms": [
+ "android"
+ ],
+ "title": "正在听时在设置里换了界面语言,回来后“结束”按钮也跟着换。",
+ "text": "原来底部的“结束”还停在旧的语言。"
}
]
},