fix(alignment): 0/6 walls 감지 시 Start 화면 복귀 (아무것도 안 됨 버그)
증상 (사용자 보고 2026-08-05):
센서 부착 안 한 상태에서 "정렬 시작" 눌러도 화면상 아무 반응 없음.
원인:
이전 sanity check 는 hint 만 "부착 확인" 으로 override 하고 waitingForStart
는 false 로 유지 → Start 버튼 숨겨진 채로 hint 만 반복 · 사용자는 뭘 할지
몰라 "안 됨" 처럼 인지.
수정:
0/6 walls 감지 + !waitingForStart 조건일 때:
- isContinuousMode = false (스캔 중단)
- waitingForStart = true (Start 버튼 다시 표시)
- prevDetached = true (Start 재클릭 시 즉시 팝업, 기존 Start 버튼 가드 활용)
waitingForStart = true 상태 (baseline) 에서는 기존대로 hint 만 override
(Start 안 눌렀는데 리셋할 필요 없음).
feature/cloud-mvp e71f63b 과 대칭 이식.
This commit is contained in:
+11
-1
@@ -934,7 +934,17 @@ fun PlacementGuideView(appState: AppState) {
|
|||||||
directionHint = context.getString(R.string.placement_check_attachment)
|
directionHint = context.getString(R.string.placement_check_attachment)
|
||||||
directionIcon = ""
|
directionIcon = ""
|
||||||
placementScore = 0
|
placementScore = 0
|
||||||
bleManager.debugLogger.info("ALIGN_V2 sanity: 0/6 walls · override to attachment check")
|
// 2026-08-05: 사용자가 Start 눌렀는데 0/6 감지 시 · Start 화면 복귀.
|
||||||
|
// 그렇지 않으면 "아무것도 안 됨" 처럼 느껴짐 (button 사라진 채 hint 만 반복).
|
||||||
|
// prevDetached=true 로 세팅해 Start 재클릭 시 즉시 팝업 발생 (line ~1229 가드).
|
||||||
|
if (!waitingForStart) {
|
||||||
|
isContinuousMode = false
|
||||||
|
waitingForStart = true
|
||||||
|
prevDetached = true
|
||||||
|
bleManager.debugLogger.warn("ALIGN_V2 sanity: 0/6 walls · Start 후 부착 실패 · waitingForStart 복귀")
|
||||||
|
} else {
|
||||||
|
bleManager.debugLogger.info("ALIGN_V2 sanity: 0/6 walls · override to attachment check")
|
||||||
|
}
|
||||||
} else if (st.state == "accum") {
|
} else if (st.state == "accum") {
|
||||||
directionHint = localizedMsg
|
directionHint = localizedMsg
|
||||||
directionIcon = ""
|
directionIcon = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user