diff --git a/apps/teacher/src/main/java/com/instructure/teacher/holders/GradeableStudentSubmissionViewHolder.kt b/apps/teacher/src/main/java/com/instructure/teacher/holders/GradeableStudentSubmissionViewHolder.kt index a303e8eee0..773ae58cd9 100644 --- a/apps/teacher/src/main/java/com/instructure/teacher/holders/GradeableStudentSubmissionViewHolder.kt +++ b/apps/teacher/src/main/java/com/instructure/teacher/holders/GradeableStudentSubmissionViewHolder.kt @@ -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 -> {