-
Notifications
You must be signed in to change notification settings - Fork 0
[Fix] 네트워크 없을 때 앱이 종료되도록 설계된 것을 dialog만 띄우도록 수정 #422
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
Conversation
kangyuri1114
left a comment
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.
슬랙도 확인했구용
기획 부분 반영 후 바로 머지하면 될 것 같습니다!
| val title = errorTitle ?: getString(R.string.server_error_title) | ||
| val message = errorMessage ?: getString(R.string.server_error_message) | ||
|
|
||
| networkErrorDialog = AlertDialog.Builder(this@observeNetworkError) | ||
| .setTitle(title) | ||
| .setMessage(message) | ||
| .setPositiveButton(getString(R.string.confirm)) { dialog, _ -> | ||
| dialog.dismiss() | ||
| } | ||
| .setCancelable(true) | ||
| .create() | ||
| .also { dialog -> | ||
| dialog.setOnDismissListener { | ||
| networkErrorDialog = null | ||
| } | ||
| dialog.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.
PeraSite
left a comment
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.
유리님께서 말씀해주신 부분은 사실 제가 작업한거지만... 수정되면 바로 머지해도 좋겠습니다!
다이알로그 새로 디자인한걸로 변경하면 조을 것 같아용 #409 에서 해줄 수 있을까용?
이 부분도 확인해서 함께 진행하겠습니다!
|
@kangyuri1114 @PeraSite 말씀해주신 부분 반영했습니다! 3c5569f |


Summary
아직 수정되지 않은 GaiException에 대한 처리를 했습니다참고로 크래시리틱스는 단순 Exception이 아닌, Exception이 제대로 처리되지 않아 강제종료가 발생하는 상황을 기록합니다개요
문제 상황
네트워크 연결 끊김 > ServerErrorActivity로 이동하고 이전 화면을 finish함(=백스택 없음) > 다이알로그의 확인을 누르는 순간 뒤에 남아있는 액티비티가 없음으로 앱이 종료됨 (사용자는 앱이 갑자기 죽었다고 느낄 수 있음)
해결 방안
결과적으로 exception은 발생하나(어쩔수 없음 요청이 fail이니까) 앱이 터지지 않고, 그러므로 크래시로 기록되지 않음추가작업사항
Describe your changes
Issue
To reviewers