File tree Expand file tree Collapse file tree 4 files changed +1
-6
lines changed
presentation/src/main/java/com/nextroom/nextroom/presentation Expand file tree Collapse file tree 4 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ data class Hint(
77 val progress : Int = 0 ,
88 val hint : String = " " ,
99 val answer : String = " " ,
10- val answerOpened : Boolean = false ,
1110 val hintImageUrlList : List <String > = emptyList(),
1211 val answerImageUrlList : List <String > = emptyList()
1312) : Serializable
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class HintViewModel @AssistedInject constructor(
6060
6161 fun setHint (hint : Hint ) {
6262 _uiState .value = _uiState .value.copy(
63- hint = hint.copy(answerOpened = _uiState .value.hint.answerOpened)
63+ hint = hint
6464 )
6565 }
6666
Original file line number Diff line number Diff line change @@ -294,7 +294,6 @@ private fun HintScreenWithNoImagesPreview() {
294294 progress = 45 ,
295295 hint = " 이 힌트는 미로 출구를 찾는 데 도움이 됩니다. 벽의 패턴을 주의 깊게 살펴보세요." ,
296296 answer = " 미로의 출구는 북쪽 벽의 세 번째 문입니다. 빨간색 표시를 따라가세요." ,
297- answerOpened = false ,
298297 hintImageUrlList = emptyList(),
299298 answerImageUrlList = emptyList()
300299 ),
@@ -320,7 +319,6 @@ private fun HintScreenWithImagesPreview() {
320319 progress = 45 ,
321320 hint = " 이 힌트는 미로 출구를 찾는 데 도움이 됩니다. 벽의 패턴을 주의 깊게 살펴보세요." ,
322321 answer = " 미로의 출구는 북쪽 벽의 세 번째 문입니다. 빨간색 표시를 따라가세요." ,
323- answerOpened = false ,
324322 hintImageUrlList = listOf (
325323 " https://example.com/hint1.jpg" ,
326324 " https://example.com/hint2.jpg"
@@ -349,7 +347,6 @@ private fun HintScreenAnswerOpenedPreview() {
349347 progress = 85 ,
350348 hint = " 이 힌트는 미로 출구를 찾는 데 도움이 됩니다. 벽의 패턴을 주의 깊게 살펴보세요." ,
351349 answer = " 미로의 출구는 북쪽 벽의 세 번째 문입니다. 빨간색 표시를 따라가세요." ,
352- answerOpened = true ,
353350 hintImageUrlList = emptyList(),
354351 answerImageUrlList = emptyList(),
355352 ),
Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ class TimerViewModel @AssistedInject constructor(
213213 progress = hint.progress,
214214 hint = hint.description,
215215 answer = hint.answer,
216- answerOpened = gameSharedViewModel.state.value.openedHintIds.contains(hint.id),
217216 hintImageUrlList = hint.hintImageUrlList.toList(),
218217 answerImageUrlList = hint.answerImageUrlList.toList()
219218 )
You can’t perform that action at this time.
0 commit comments