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

[Feature/#186] login message #204

Merged
merged 6 commits into from
Aug 20, 2024
Merged

[Feature/#186] login message #204

merged 6 commits into from
Aug 20, 2024

Conversation

0se0
Copy link
Member

@0se0 0se0 commented Aug 18, 2024

⛳️ Work Description

  • 이슈를 참고해주세요

📸 Screenshot

토스트 메세지 확인은 서버에서 만료기간을 짧게 하였을 때 확인이 가능할 것 같습니다.
(현재는 만료된 엑세스 토큰을 강제로 넣어서 리프레시가 제대로 발급되는지 로그로 확인할 수 있습니다.)

📢 To Reviewers

  • 커스텀 xml을 사용했는데 경고 창이 좀 많이 뜨더라고요. 그래서 감안하고 이대로 구현할지 아니면 그냥 일반 토스트로 구현할지 머지 전까지는 고민해 보아야 할 것 같은데, 어떻게 생각하시는지 궁금합니다.

@0se0 0se0 added FIX 🛠️ 버그 및 오류 해결 UI 📱 UI 작업 FEATURE ✨ 새로운 기능 구현 세영 🦌 labels Aug 18, 2024
@0se0 0se0 added this to the 2차 스프린트 QA milestone Aug 18, 2024
@0se0 0se0 requested review from chattymin and hyeeum August 18, 2024 13:49
@0se0 0se0 self-assigned this Aug 18, 2024
Copy link
Member

@chattymin chattymin 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 101 to 119
private fun showReLoginMessage() {
Handler(Looper.getMainLooper()).post {
showCustomToast()
}
}

private fun showCustomToast() {
val inflater = LayoutInflater.from(context)
val layout = inflater.inflate(R.layout.custom_toast, null)

val text: TextView = layout.findViewById(R.id.toast_text)
text.setText(R.string.relogin_message)

Toast(context).apply {
duration = Toast.LENGTH_SHORT
setView(layout)
show()
}
}
Copy link
Member

Choose a reason for hiding this comment

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

custom Toast를 사용하면 에러가 발생한다는게 혹시 어떤 오류일까요??

크리티컬 하다면 그냥 기본 토스트 사용해도 괜찮을 것 같아요!!
어차피 사용자에게 자주 발생될 일도 아니라 통일성이 조금은 깨져도 될 것 같아용

Copy link
Member Author

Choose a reason for hiding this comment

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

에러는 아니고 setView가 deprecated된 아이더라구요..! 그래서 고민을 좀 했었습니다.
그래서 저도 기본 토스트로 사용하는 것이 더 좋을 거 같다고 생각합니다.

Copy link
Contributor

@hyeeum hyeeum left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~!

@0se0 0se0 merged commit d8c29ba into develop Aug 20, 2024
@0se0 0se0 deleted the feature/#186-login-message branch August 20, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE ✨ 새로운 기능 구현 FIX 🛠️ 버그 및 오류 해결 UI 📱 UI 작업 세영 🦌
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] login message
3 participants