Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AN/USER] 티켓 제시 화면 2개 버그 해결 (#519) #520

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Conversation

re4rk
Copy link
Collaborator

@re4rk re4rk commented Oct 8, 2023

📌 관련 이슈

✨ PR 세부 내용

  • 새로고침 시 타이머가 작동하지 않는 문제 해결
  • 입장 처리시 여러번 토스트가 띄워지는 문제 해결

@re4rk re4rk added AN 안드로이드에 관련된 작업 USER 🛠 수정 수정에 관련된 작업 labels Oct 8, 2023
@re4rk re4rk self-assigned this Oct 8, 2023
@re4rk re4rk linked an issue Oct 8, 2023 that may be closed by this pull request
Copy link
Member

@SeongHoonC SeongHoonC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오류 수정 감사합니다! 궁금한 점만 남겨봤습니다!

Comment on lines +69 to +73
TicketEntryService.ticketStateChangeEvent.first {
Toast.makeText(this, "티켓이 스캔되었습니다.", Toast.LENGTH_SHORT).show()
setResult(RESULT_OK, intent)
finish()
true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

한번만 받아야하는 이벤트군요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 collect나 collectLast를 하면 티켓이 스캔되었습니다! 가 계속 뜨게 됩니다!

Comment on lines +69 to +73
private fun setTimer(ticketId: Long, ticketCode: TicketCode) {
viewModelScope.launch {
timer.timerListener = createTimerListener(ticketId)
timer.start(ticketCode.period)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이렇게 바꾸면 타이머가 정상 작동하나요..?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이전에는 왜 문제가 있었던건가요 ?_?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정확한 이유는 모르겠으나 combine안에서 timer를 호출하게 된다면 다른 corutineScope안에서 타이머가 동작하게 되어서 문제가 생기게 되었다고 보고있습니다!

Copy link
Member

@EmilyCh0 EmilyCh0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +69 to +73
private fun setTimer(ticketId: Long, ticketCode: TicketCode) {
viewModelScope.launch {
timer.timerListener = createTimerListener(ticketId)
timer.start(ticketCode.period)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이전에는 왜 문제가 있었던건가요 ?_?

@re4rk re4rk merged commit 210f99e into dev Oct 9, 2023
6 checks passed
@re4rk re4rk deleted the feat/#519 branch October 9, 2023 17:17
BGuga pushed a commit that referenced this pull request Oct 17, 2023
* fix: 입장처리가 단 한번만 반영되도록 변경

* fix: 리프레시에 타이머가 제대로 돌지 않는 상황 처리
BGuga pushed a commit that referenced this pull request Oct 17, 2023
* fix: 입장처리가 단 한번만 반영되도록 변경

* fix: 리프레시에 타이머가 제대로 돌지 않는 상황 처리
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AN 안드로이드에 관련된 작업 USER 🛠 수정 수정에 관련된 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AN] 티켓 화면 버그 수정
3 participants