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

알림함에서 강의상세 진입 시 강의평 조회실패 수정 #390

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fun InstallInAppDeeplinkExecutor() {

homePageLectureDetailViewModel.initializeEditingLectureDetail(
lectureToShow,
ModeType.Viewing,
ModeType.Normal,
)
withContext(Dispatchers.Main) {
navController.navigate("${NavigationDestination.TimetableLecture}?tableId=$timetableId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ fun LectureDetailPage(
ModeType.Normal -> {
if (navController.currentDestination?.route == NavigationDestination.LectureDetail) {
navController.popBackStack()
} else if (navController.currentDestination?.route?.contains(NavigationDestination.TimetableLecture) == true) {
onCloseViewMode(scope) // 알림함에서 진입하는 경우 다시 알림함으로 돌아가야 함
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

navController.currentDestination?.route == NavigationDestination.LectureDetail 분기의 정체)
뒤로가기 연타하면 흰 화면 보이는? 버그를 막기 위한 코드
요 분기때문에 이 작업에서 TimetableLecture 분기도 추가되어 코드를 이해하기 어려워짐

-> 지금은 발생하지 않는 버그거나 발생하더라도 사소한 수준이라면
요 분기 없애고
Normal, Viewing 통일하고
onCloseViewMode를 항상 넣어줄 수 있도록 코드상에서 강제해본다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이거 분기 없애면 강의 상세에서 좌상단의 뒤로가기 버튼이랑 그냥 뒤로가기 동시에 눌렀을 때
하얀 화면 되는 버그 100% 재현 가능한데다 한번 그렇게 되면 앱 나갔다가 들어와도 하얀 화면에 갇혀서,
분기 없애기는 힘든 것 같아
#184 (comment)

}
is ModeType.Editing -> {
Expand Down
Loading