Skip to content

Commit

Permalink
Update CourseFragment.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
gemoreno committed May 6, 2024
1 parent 2c9e6e8 commit 042ee01
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class CourseFragment(
return requireArguments().getParcelable(KEY_COURSE)
}

private val userId: String
get() {
return requireArguments().getString(KEY_USER_ID) ?: ""
}

override fun inflateBinding(
inflater: LayoutInflater,
container: ViewGroup?
Expand All @@ -59,7 +64,8 @@ class CourseFragment(
Command.ShowAssignments -> {
val fragment = AssignmentsFragment.newInstance(
course?.id.orEmpty(),
userType.name
userId = userId,
userType = userType.name
)
parentFragmentManager.showBaseFragment(
fragment = fragment,
Expand Down

0 comments on commit 042ee01

Please sign in to comment.