PiezoMonitoring Delete pairing: appState.isDeviceConnected도 false로 동기화
증상: 도넛차트(PiezoMonitoring) Settings → Delete pairing 후 HOME 진입 시 '● Connected — Start to resume' chip이 여전히 표시. 원인: 어제 회의 결정으로 goHome()이 BLE 연결 유지(disconnect+isDeviceConnected reset 제거)로 바뀜. 일반 Home 진입은 이게 맞지만, 명시적 Unpair는 진짜로 끊은 거라 isDeviceConnected를 false로 동기화해야 함. ClinicalHome Unpair는 이전 fix에서 이미 처리됨. PiezoMonitoring은 누락. 수정: bleManager.disconnectAndUnbond() 직후 appState.isDeviceConnected=false 명시적 처리 후 goHome() 호출. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -1562,7 +1562,11 @@ fun PiezoMonitoringView(appState: AppState) {
|
||||
confirmButton = {
|
||||
TextButton(onClick = {
|
||||
showDisconnectConfirm = false; showSettings = false
|
||||
bleManager.disconnectAndUnbond(); appState.goHome()
|
||||
bleManager.disconnectAndUnbond()
|
||||
// goHome()이 BLE 연결 유지 정책이라 isDeviceConnected를 reset 안 함.
|
||||
// 명시적 Unpair는 끊은 게 맞으므로 여기서 직접 false 처리.
|
||||
appState.isDeviceConnected = false
|
||||
appState.goHome()
|
||||
}) { Text("Delete", color = Color.Red) }
|
||||
},
|
||||
dismissButton = { TextButton(onClick = { showDisconnectConfirm = false }) { Text("Cancel") } }
|
||||
|
||||
Reference in New Issue
Block a user