From b92b166b824916200a6ca92629dcf0559ba9be80 Mon Sep 17 00:00:00 2001 From: jjangddu Date: Wed, 17 Jun 2026 17:46:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Start=20=EC=A7=81=ED=9B=84=20Hint=202=20?= =?UTF-8?q?=EC=97=90=20"Place=20above=20pubic=20bone"=20=EA=B0=80=20?= =?UTF-8?q?=EC=9E=A0=EC=8B=9C=20=EB=96=B4=EB=8D=98=20leak=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 증상: Start Alignment 버튼 누른 직후 Hint 2 (아래쪽 박스) 에 "Place VesiScan above the pubic bone, then press Start" 가 잠깐 표시됨. 이 메세지는 Hint 1 (위쪽 박스) 전용. 원인: Start onClick 핸들러가 waitingForStart=false 만 바꾸고 directionHint 는 그대로 둠. directionHint 의 초기값/리셋값이 "Place...above pubic bone" 이라 V1 placement 엔진이 첫 cycle 에 새 hint 를 쓸 때까지 그 stale 값이 Hint 2 로 leak. (waitingForStart=false 가 되면 Hint 2 가시 조건 충족) 수정: Start onClick 에 directionHint="" + directionIcon="" 추가. displayHint 가 " " (whitespace) → isNotBlank()=false → hint2Visible=false → 박스 자체가 사라짐 (배경도 투명). 엔진이 첫 commit 에서 새 hint 를 쓰면 Hint 2 정상 등장. Co-Authored-By: Claude Opus 4.7 --- .../ui/views/monitoring/PlacementGuideView.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt index a13fcdb..3eb604f 100644 --- a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt +++ b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt @@ -1037,6 +1037,10 @@ fun PlacementGuideView(appState: AppState) { lastHintChangeMs = 0L scanCount = 0 startPressedAtMs = System.currentTimeMillis() + // Hint 2 leak 방지 — 엔진이 새 방향 힌트 쓸 때까지 비워둠 + // (이전엔 "Place above pubic bone" 가 Start 직후 Hint 2 칸에 뜨곤 함) + directionHint = "" + directionIcon = "" phaseHoldScans = 0 placementPhase = PlacementPhase.VERTICAL isLocked = false