From c28f5cd7da1b00ff5fc0abab3030bf2fe4b7c7d8 Mon Sep 17 00:00:00 2001 From: tmdgh1592 Date: Sat, 26 Feb 2022 05:58:20 +0900 Subject: [PATCH] Feature(dummy): "add temporary dummy data" - add temporary dummy data for test video - move progress activity on click itemClass view related to : #176 --- .../main/classmanage/subject/SubjectFragment.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/dnd/sixth/lmsservice/presentation/main/classmanage/subject/SubjectFragment.kt b/app/src/main/java/com/dnd/sixth/lmsservice/presentation/main/classmanage/subject/SubjectFragment.kt index 59868cc..c591fe0 100644 --- a/app/src/main/java/com/dnd/sixth/lmsservice/presentation/main/classmanage/subject/SubjectFragment.kt +++ b/app/src/main/java/com/dnd/sixth/lmsservice/presentation/main/classmanage/subject/SubjectFragment.kt @@ -130,7 +130,7 @@ class SubjectFragment : BaseFragment(), newSubjectEntity.also { showInviteDialog(it) // 초대 코드 다이얼로그를 보여준다. - hostViewModel?.addSubject(it) // 수업 리스트에 추가한다. + hostViewModel!!.addSubject(it) // 수업 리스트에 추가한다. } } @@ -258,7 +258,9 @@ class SubjectFragment : BaseFragment(), } R.id.class_btn -> { // 선택한 사용자의 피드백 화면으로 이동합니다. - startActivity(Intent(requireContext(), ClassProgressActivity::class.java)) + startActivity(Intent(requireContext(), ClassProgressActivity::class.java).putExtra( + INTENT_SUBJECT_ID_KEY, hostViewModel.getClassModel(position).subjectId + )) } } }