Skip to content

Commit

Permalink
[MBL-17546][Teacher] Submission list crash #2438
Browse files Browse the repository at this point in the history
refs: MBL-17546
affects: Teacher
release note: Fixed a crash when opening a student profile from the submission list.

(cherry picked from commit 183f0df)
  • Loading branch information
tamaskozmer committed May 10, 2024
1 parent 448911d commit acc6285
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class GradeableStudentSubmissionViewHolder(private val binding: AdapterGradeable
studentAvatar.setupAvatarA11y(assignee.name)
studentAvatar.onClick {
val bundle = StudentContextFragment.makeBundle(assignee.id, courseId)
RouteMatcher.route(context as FragmentActivity, Route(StudentContextFragment::class.java, null, bundle))
RouteMatcher.route(context.getFragmentActivity(), Route(StudentContextFragment::class.java, null, bundle))
}
}
assignee is GroupAssignee -> {
Expand Down

0 comments on commit acc6285

Please sign in to comment.