-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사소한것들도 전부다 꼼꼼하게 수정해주셨네요!!
감사합니다 :)
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() | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom Toast를 사용하면 에러가 발생한다는게 혹시 어떤 오류일까요??
크리티컬 하다면 그냥 기본 토스트 사용해도 괜찮을 것 같아요!!
어차피 사용자에게 자주 발생될 일도 아니라 통일성이 조금은 깨져도 될 것 같아용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러는 아니고 setView가 deprecated된 아이더라구요..! 그래서 고민을 좀 했었습니다.
그래서 저도 기본 토스트로 사용하는 것이 더 좋을 거 같다고 생각합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~!
⛳️ Work Description
📸 Screenshot
토스트 메세지 확인은 서버에서 만료기간을 짧게 하였을 때 확인이 가능할 것 같습니다.
(현재는 만료된 엑세스 토큰을 강제로 넣어서 리프레시가 제대로 발급되는지 로그로 확인할 수 있습니다.)
📢 To Reviewers