private void displayCourses(long userId) {

    DbHelper db = DbHelper.getInstance(this);
    courses.clear();
    courses.addAll(db.getCourses(userId));

    LinearLayout llLoading = (LinearLayout) this.findViewById(R.id.loading_courses);
    llLoading.setVisibility(View.GONE);

    if (courses.size() < MobileLearning.DOWNLOAD_COURSES_DISPLAY) {
      displayDownloadSection();
    } else {
      TextView tv = (TextView) this.findViewById(R.id.manage_courses_text);
      tv.setText(R.string.no_courses);
      llNone.setVisibility(View.GONE);
    }

    courseListAdapter.notifyDataSetChanged();
    this.updateReminders();
    this.scanMedia();
  }