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): stepping through search matches while a recording plays no longer jumps back to the line playing

wquguru2a714449c42a
diff --git a/android/app/src/main/kotlin/com/wquguru/cicada/RecordsActivity.kt b/android/app/src/main/kotlin/com/wquguru/cicada/RecordsActivity.kt
index 131bd5d..b8a234c 100644
--- a/android/app/src/main/kotlin/com/wquguru/cicada/RecordsActivity.kt
+++ b/android/app/src/main/kotlin/com/wquguru/cicada/RecordsActivity.kt
@@ -307,6 +307,9 @@ class RecordActivity : Activity() {
if (n == 0) return
matchIndex = (matchIndex.coerceIn(0, n - 1) + d + n) % n
if (tab != 1) { tab = 1; render() }
+ // While the recording plays, going to a line found stops following it, as a finger does:
+ // otherwise the next line heard yanks the page back within seconds.
+ if (following && player?.isPlaying == true) { following = false; showBackToPlaying() }
showMatchBar()
adapter.notifyDataSetChanged()
list.post { goToMatch() }