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): keep the floating window from covering a picture-in-picture video after Watch over video

wquguru22577bbdc631
diff --git a/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt b/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt
index 7b54096..5b93b09 100644
--- a/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt
+++ b/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt
@@ -100,6 +100,9 @@ class Overlay(private val app: CicadaApp) {
"subtitles" -> buildSubtitles(frame, p)
else -> buildNotes(frame, p)
}
+ // A video in picture-in-picture moves out of the way of keep-clear areas (Android 13+),
+ // so 在视频上看 doesn't hide the very video it is about. The bubble is small enough to sit on it.
+ if (mode != "bubble" && android.os.Build.VERSION.SDK_INT >= 33) frame.isPreferKeepClear = true
try {
wm.addView(frame, p)
root = frame
diff --git a/site/changelog.json b/site/changelog.json
index 4220a58..f056dfb 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -6,6 +6,11 @@
"summary": "实时纪要窗口重新排版,纪要落后时说清楚还差多少;说话人的名字在实时纪要里就能改。",
"image": null,
"items": [
+ {
+ "kind": "fixed",
+ "title": "Android 上点“在视频上看”,悬浮窗不再盖住小窗里的视频。",
+ "text": "Android 13 以上,画中画小窗会自动让到悬浮窗旁边;收成小圆点时照旧。"
+ },
{
"kind": "new",
"title": "用不了 Ling 时可以换成 OpenRouter、ZenMux、OpenAI 或任何 OpenAI 兼容服务。",