Added code to refresh the list of currently enrolled courses as in MyCoursesFragment and changed the error toast from "Unknown error occurred" to "Course Already Enrolled".
In most cases, the list gets updated but in case it takes time the toast shows a meaningful error.
Added code to refresh the list of currently enrolled courses as in MyCoursesFragment and changed the error toast from "Unknown error occurred" to "Course Already Enrolled". In most cases, the list gets updated but in case it takes time the toast shows a meaningful error.